Class LocalMarkHolder


  • public abstract class LocalMarkHolder
    extends java.lang.Object
    A local MarkHolder is a class that gets the "current" MarkHolder based on context. For example, a thread local MarkHolder could use this class to pull the local MarkHolder from the threadlocal variable. Other implementations are possible as well.
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalMarkHolder()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract MarkHolder acquire()
      Get's the current MarkHolder for mutation.
      abstract void clear()
      Removes the local markholder storage.
      void release​(MarkHolder markHolder)
      Releases the MarkHolder from being written too.
      • Methods inherited from class java.lang.Object

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

      • LocalMarkHolder

        public LocalMarkHolder()
    • Method Detail

      • clear

        public abstract void clear()
        Removes the local markholder storage.
      • acquire

        public abstract MarkHolder acquire()
        Get's the current MarkHolder for mutation. Only called from a tracing thread.
      • release

        public void release​(MarkHolder markHolder)
        Releases the MarkHolder from being written too. Usually called very shortly after acquire(). This method is meant to be overridden and should not be called from subclasses.