| 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 | Description |
|---|---|---|
Reaper<T,A> |
PhantomReference.getReaper() |
|
Reaper<T,A> |
SoftReference.getReaper() |
|
Reaper<T,A> |
WeakReference.getReaper() |
| Modifier and Type | Method | 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 | Description |
|---|---|
CleanerReference(T referent,
A attachment,
Reaper<T,A> reaper) |
Construct a new instance with a reaper.
|
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 © 2018 JBoss, a division of Red Hat, Inc.