Class LockHandlerBase

java.lang.Object
ro.sync.exml.plugin.lock.LockHandlerBase
All Implemented Interfaces:
LockHandler
Direct Known Subclasses:
LockHandlerWithContext

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

    • LockHandlerBase

      public LockHandlerBase()
  • Method Details

    • isLockEnabled

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

      public abstract boolean isSaveAllowed(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.