Reaper is given, then it will be used to asynchronously
clean up the referent.
java.lang.ref.PhantomReference
| Modifier and Type | Field and Description |
|---|---|
| private final A | |
| private final Reaper |
| Access | Constructor and Description |
|---|---|
| public | PhantomReference(final T
the referent referent, final A the attachment attachment, final ReferenceQueue<? super T> the reference queue to use q)Construct a new instance with an explicit reference queue. |
| public | PhantomReference(final T
the referent referent, final A the attachment attachment, final Reaper<T, A> the reaper to use reaper)Construct a new instance with a reaper. |
| Modifier and Type | Method and Description |
|---|---|
| public A | getAttachment()
Implements org. |
| public Reaper | |
| public Reference. | |
| public String |
| attachment | back to summary |
|---|---|
| private final A attachment | |
| reaper | back to summary |
|---|---|
| private final Reaper<T, A> reaper | |
| PhantomReference | back to summary |
|---|---|
| public PhantomReference(final T referent, final A attachment, final ReferenceQueue<? super T> q) Construct a new instance with an explicit reference queue.
| |
| PhantomReference | back to summary |
|---|---|
| public PhantomReference(final T referent, final A attachment, final Reaper<T, A> reaper) Construct a new instance with a reaper.
| |
| getAttachment | back to summary |
|---|---|
| public A getAttachment() Implements org. Doc from org. Get the attachment, if any.
| |
| getReaper | back to summary |
|---|---|
| public Reaper Implements org. Doc from org. Get the associated reaper.
| |
| getType | back to summary |
|---|---|
| public Reference. Implements org. Doc from org. Get the type of the reference. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |