Class LockingVisitors.ReentrantLockVisitor<O>

    • Constructor Detail

      • ReentrantLockVisitor

        protected ReentrantLockVisitor​(O object,
                                       java.util.concurrent.locks.ReentrantLock reentrantLock)
        Creates a new instance with the given object and lock.

        This visitor uses the given ReentrantLock for all of its accept and apply methods.

        Parameters:
        object - The object to protect. The caller is supposed to drop all references to the locked object.
        reentrantLock - the lock to use.
        See Also:
        LockingVisitors