Package tenapull.sync

Class WeakInstancesTracker.WeakRef

java.lang.Object
tenapull.sync.WeakInstancesTracker.WeakRef
All Implemented Interfaces:
InstancesTracker.KeyFinalizer<WeakInstancesTracker.WeakRef,​I>
Enclosing class:
WeakInstancesTracker<K,​I>

public class WeakInstancesTracker.WeakRef
extends java.lang.Object
implements InstancesTracker.KeyFinalizer<WeakInstancesTracker.WeakRef,​I>
A wrapper for WeakReference that also implement the Instances.KeyFinalizer interface, so that a key is held as a strong reference until it has been finalized
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    void finalizeKey​(I instance)
    Method invoked immediately after finalization is completed.
    K get()
    Get the key which this references, or null if it has been GC'd

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details