Class NamedLockSupport

    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
      • name

        private final java.lang.String name
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: NamedLock
        Returns this instance name, never null
        Specified by:
        name in interface NamedLock
      • close

        public void close()
        Description copied from interface: NamedLock
        Closes the lock resource. Lock MUST be unlocked using NamedLock.unlock() in case any locking happened on it. After invoking this method, the lock instance MUST NOT be used anymore. If lock for same name needed, a new instance should be obtained from factory using NamedLockFactory.getLock(String). Ideally, instances are to be used within try-with-resource blocks, so calling this method directly is not really needed, nor advised.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface NamedLock