Deprecated
See CleanerReference.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| pack-priv static final Object |
| Access | Constructor and Description |
|---|---|
| protected | AutomaticReference(final T
the object to monitor referent, final Object the permit object originally acquired from permit)getPermit()Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| private static ReferenceQueue | |
| public final void | |
| public final boolean | |
| protected abstract void | |
| public final T | |
| public static Object | |
| public final boolean | Returns: true if the reference has been enqueued, false otherwiseOverrides java. Determine whether this reference has been enqueued by the garbage collector. |
| LIVE_SET | back to summary |
|---|---|
| private static final Set<AutomaticReference<?>> LIVE_SET | |
| PERMIT | back to summary |
|---|---|
| pack-priv static final Object PERMIT | |
| AutomaticReference | back to summary |
|---|---|
| protected AutomaticReference(final T referent, final Object permit) Construct a new instance. In order to maximize performance, the only security check performed by
this constructor is to verify the
| |
| checkPermit | back to summary |
|---|---|
| private static ReferenceQueue | |
| clear | back to summary |
|---|---|
| public final void clear() Overrides java. Not supported.
| |
| enqueue | back to summary |
|---|---|
| public final boolean enqueue() Overrides java. Not supported.
| |
| free | back to summary |
|---|---|
| protected abstract void free() Free this reference. This method will be called from a dedicated thread or threads so this method should execute as quickly as possible. | |
| get | back to summary |
|---|---|
| public final T get() Overrides java. Always returns
| |
| getPermit | back to summary |
|---|---|
| public static Object getPermit() Get the security authorization permit to create automatic references.
| |
| isEnqueued | back to summary |
|---|---|
| public final boolean isEnqueued() Overrides java. Determine whether this reference has been enqueued by the garbage collector.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final ReferenceQueue |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| QUEUE | back to summary |
|---|---|
| private static final ReferenceQueue<Object> QUEUE | |
| Cleaner | back to summary |
|---|---|
| pack-priv Cleaner() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |