Class NopLock

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static ResourceLock INSTANCE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NopLock()  
    • Constructor Detail

      • NopLock

        private NopLock()
    • Method Detail

      • acquire

        public ResourceLock acquire()
        Description copied from interface: ResourceLock
        Acquire this resource lock, potentially blocking.
        Specified by:
        acquire in interface ResourceLock
        Returns:
        this lock so it can easily be used in a try-with-resources statement.
      • release

        public void release()
        Description copied from interface: ResourceLock
        Release this resource lock.
        Specified by:
        release in interface ResourceLock
      • isExclusive

        public boolean isExclusive()
        Description copied from interface: ResourceLock
        {@return whether this lock requires exclusiveness}
        Specified by:
        isExclusive in interface ResourceLock
      • toString

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