public class WeakHandle extends java.lang.ref.WeakReference<java.lang.Object> implements HGLiveHandle, java.lang.Comparable<HGHandle>
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<java.lang.Boolean> |
returnEnqueued |
Constructor and Description |
---|
WeakHandle(java.lang.Object ref,
HGPersistentHandle persistentHandle,
byte flags,
java.lang.ref.ReferenceQueue<java.lang.Object> refQueue) |
Modifier and Type | Method and Description |
---|---|
void |
accessed() |
int |
compareTo(HGHandle h) |
boolean |
equals(java.lang.Object other) |
byte |
getFlags() |
HGPersistentHandle |
getPersistent() |
java.lang.Object |
getRef() |
int |
hashCode() |
java.lang.String |
toString() |
public WeakHandle(java.lang.Object ref, HGPersistentHandle persistentHandle, byte flags, java.lang.ref.ReferenceQueue<java.lang.Object> refQueue)
public byte getFlags()
getFlags
in interface HGLiveHandle
public HGPersistentHandle getPersistent()
getPersistent
in interface HGHandle
public java.lang.Object getRef()
getRef
in interface HGLiveHandle
public void accessed()
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object