Package | Description |
---|---|
org.wildfly.common.ref |
Classes which implement reference types which can be cleaned up automatically by a background thread.
|
Modifier and Type | Method and Description |
---|---|
Reaper<T,A> |
SoftReference.getReaper() |
Reaper<T,A> |
PhantomReference.getReaper() |
Reaper<T,A> |
WeakReference.getReaper() |
Modifier and Type | Method and Description |
---|---|
static <T,A> Reference<T,A> |
References.create(Reference.Type type,
T value,
A attachment,
Reaper<T,A> reaper)
Create a reference of a given type with the provided value and attachment.
|
Constructor and Description |
---|
PhantomReference(T referent,
A attachment,
Reaper<T,A> reaper)
Construct a new instance with a reaper.
|
SoftReference(T referent,
A attachment,
Reaper<T,A> reaper)
Construct a new instance with a reaper.
|
WeakReference(T referent,
A attachment,
Reaper<T,A> reaper)
Construct a new instance with a reaper.
|
Copyright © 2015 JBoss, a division of Red Hat, Inc.