public class WeakHandle extends WeakReference<Object> implements HGLiveHandle, Comparable<HGHandle>
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Boolean> |
returnEnqueued |
| Constructor and Description |
|---|
WeakHandle(Object ref,
HGPersistentHandle persistentHandle,
byte flags,
ReferenceQueue<Object> refQueue) |
| Modifier and Type | Method and Description |
|---|---|
void |
accessed() |
int |
compareTo(HGHandle h) |
boolean |
equals(Object other) |
byte |
getFlags() |
HGPersistentHandle |
getPersistent() |
Object |
getRef() |
int |
hashCode() |
String |
toString() |
clear, enqueue, get, isEnqueuedpublic static ThreadLocal<Boolean> returnEnqueued
public WeakHandle(Object ref, HGPersistentHandle persistentHandle, byte flags, ReferenceQueue<Object> refQueue)
public byte getFlags()
getFlags in interface HGLiveHandlepublic HGPersistentHandle getPersistent()
getPersistent in interface HGHandlepublic Object getRef()
getRef in interface HGLiveHandlepublic void accessed()
public int compareTo(HGHandle h)
compareTo in interface Comparable<HGHandle>Copyright © 2015. All rights reserved.