Package | Description |
---|---|
org.jboss.modules.ref |
Classes which implement reference types which can be cleaned up automatically by a background thread.
|
Modifier and Type | Method and Description |
---|---|
Reference.Type |
WeakReference.getType() |
Reference.Type |
StrongReference.getType() |
Reference.Type |
SoftReference.getType() |
Reference.Type |
Reference.getType()
Get the type of the reference.
|
Reference.Type |
PhantomReference.getType() |
static Reference.Type |
Reference.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Reference.Type[] |
Reference.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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.
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.