Package ro.sync.exml.plugin.lock
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Checks if locking is enabled.abstract boolean
isSaveAllowed
(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
Methods inherited from interface ro.sync.exml.plugin.lock.LockHandler
unlock, updateLock
-
Constructor Details
-
LockHandlerBase
public LockHandlerBase()
-
-
Method Details
-
isLockEnabled
public abstract boolean isLockEnabled()Checks if locking is enabled.- Returns:
true
if locking is enabled
-
isSaveAllowed
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.
-