Class CombinedLock

  • All Implemented Interfaces:
    Lock

    public class CombinedLock
    extends java.lang.Object
    implements Lock
    Combines multiple locks into one with an AND operation.
    • Method Detail

      • isLockClear

        public boolean isLockClear​(LockLogger lockLogger)
        Test the lock conditions
        Specified by:
        isLockClear in interface Lock
        Parameters:
        lockLogger - the logger on which to emit status messages
        Returns:
        True if lock is clear and operation permitted
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object