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 | |
| public |
| 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) | |
| PhantomReference | back to summary |
|---|---|
| public PhantomReference(final T referent, final A attachment, final Reaper<T, 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.
| |