@API(type=EXTENDABLE,
src=PUBLIC)
public interface LockHandler
| Modifier and Type | Method and Description |
|---|---|
void |
unlock(java.net.URL resource)
Unlock a specific resource
|
void |
updateLock(java.net.URL resource,
int timeoutSeconds)
Lock a specific resource if it has never been locked before or refresh the lock.
|
void unlock(java.net.URL resource)
throws LockException
resource - The URL to unlockLockException - When could not unlock properly.void updateLock(java.net.URL resource,
int timeoutSeconds)
throws LockException
resource - The URL to lock.timeoutSeconds - The timeout in seconds to set for the lock
(so that the lock expires after the timeout passes).
The refresh on the lock is called about every (timeout/2) seconds.LockException - When could not lock properly.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.