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, isEnqueued
public static ThreadLocal<Boolean> returnEnqueued
public WeakHandle(Object ref, HGPersistentHandle persistentHandle, byte flags, ReferenceQueue<Object> refQueue)
public byte getFlags()
getFlags
in interface HGLiveHandle
public HGPersistentHandle getPersistent()
getPersistent
in interface HGHandle
public Object getRef()
getRef
in interface HGLiveHandle
public void accessed()
public int compareTo(HGHandle h)
compareTo
in interface Comparable<HGHandle>
Copyright © 2015. All rights reserved.