Class LockingVisitors.ReadWriteLockVisitor<O>

    • Constructor Detail

      • ReadWriteLockVisitor

        protected ReadWriteLockVisitor​(O object,
                                       java.util.concurrent.locks.ReadWriteLock readWriteLock)
        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.
        readWriteLock - the lock to use.