Class LockHandlerBase

  • All Implemented Interfaces:
    LockHandler
    Direct Known Subclasses:
    LockHandlerWithContext

    @API(type=EXTENDABLE,
         src=PUBLIC)
    public abstract class LockHandlerBase
    extends java.lang.Object
    implements LockHandler
    Base for classes used for managing locking and unlocking.
    Since:
    17
    • Constructor Summary

      Constructors 
      Constructor Description
      LockHandlerBase()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean isLockEnabled()
      Checks if locking is enabled.
      abstract boolean isSaveAllowed​(java.net.URL url, int timeoutSeconds)
      Checks if save is allowed for a resource identified by its URL.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LockHandlerBase

        public LockHandlerBase()
    • Method Detail

      • isLockEnabled

        public abstract boolean isLockEnabled()
        Checks if locking is enabled.
        Returns:
        true if locking is enabled
      • isSaveAllowed

        public abstract boolean isSaveAllowed​(java.net.URL url,
                                              int timeoutSeconds)
        Checks if save is allowed for a resource identified by its URL.
        Parameters:
        url - The URL for which the check is performed.
        timeoutSeconds - The timeout in seconds to set for the lock .
        Returns:
        true if saving is allowed.