Class Lockable<T>


  • public final class Lockable<T>
    extends Object
    Implements locking logic for incoming event and SharedBufferNode using a lock reference counter.
    • Constructor Detail

      • Lockable

        public Lockable​(T element,
                        int refCounter)
    • Method Detail

      • lock

        public void lock()
      • getElement

        public T getElement()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object