Class LockingVisitors.StampedLockVisitor<O>

    • Constructor Detail

      • StampedLockVisitor

        protected StampedLockVisitor​(O object,
                                     java.util.concurrent.locks.StampedLock stampedLock)
        Creates a new instance with the given locked object. This constructor is supposed to be used for subclassing only. In general, it is suggested to use LockingVisitors.stampedLockVisitor(Object) instead.
        Parameters:
        object - The locked (hidden) object. The caller is supposed to drop all references to the locked object.
        stampedLock - the lock to use.