Class Storage.MarkHolderHandle

  • Enclosing class:
    Storage

    public static final class Storage.MarkHolderHandle
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MarkHolder markHolder()
      Returns the MarkHolder.
      java.lang.ref.WeakReference<? extends java.lang.Thread> threadRef()
      Returns a weak reference to the Thread that created the MarkHolder.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • markHolder

        public MarkHolder markHolder()
        Returns the MarkHolder. May return null if the Thread is gone. If null is returned, then getThreadRef().get() == null. If a non-null value is returned, the thread may be dead or alive. Additionally, since the threadRef may be externally cleared, it is not certain that the Thread is dead.
      • threadRef

        public java.lang.ref.WeakReference<? extends java.lang.Thread> threadRef()
        Returns a weak reference to the Thread that created the MarkHolder.