Class LockingVisitors.ReadWriteLockVisitor<O>

    • Constructor Detail

      • ReadWriteLockVisitor

        protected ReadWriteLockVisitor​(O object,
                                       java.util.concurrent.locks.ReadWriteLock readWriteLock)
        Creates a new instance with the given object and lock.
        Parameters:
        object - The object to protect. The caller is supposed to drop all references to the locked object.
        readWriteLock - the lock to use.
        See Also:
        LockingVisitors