Package | Description |
---|---|
org.wildfly.common.ref |
Classes which implement reference types which can be cleaned up automatically by a background thread.
|
Modifier and Type | Class and Description |
---|---|
class |
PhantomReference<T,A>
A reapable phantom reference with an attachment.
|
class |
SoftReference<T,A>
A reapable soft reference with an attachment.
|
class |
StrongReference<T,A>
A strong reference with an attachment.
|
class |
WeakReference<T,A>
A reapable weak reference with an attachment.
|
Modifier and Type | Method and Description |
---|---|
static <T,A> Reference<T,A> |
References.create(Reference.Type type,
T value,
A attachment)
Create a reference of a given type with the provided value and attachment.
|
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.
|
static <T,A> Reference<T,A> |
References.create(Reference.Type type,
T value,
A attachment,
ReferenceQueue<? super T> referenceQueue)
Create a reference of a given type with the provided value and attachment.
|
static <T,A> Reference<T,A> |
References.getNullReference()
Get a null reference.
|
Modifier and Type | Method and Description |
---|---|
void |
Reaper.reap(Reference<T,A> reference)
Perform the cleanup action for a reference.
|
Copyright © 2015 JBoss, a division of Red Hat, Inc.