@Deprecated public interface ITaskLockingService extends IClusterLockingService
LOCKING_SERVICE_NAME, TASK_LOCK_MAX_TIME, TASK_LOCK_MAX_WAIT_TIME
Modifier and Type | Method and Description |
---|---|
ITaskLock |
acquireLock(IURI sourceURI,
IURI taskURI,
long validTime,
long waitTime)
Deprecated.
|
ITaskLock |
acquireLock(IURI sourceURI,
IURI taskURI,
long validTime,
long waitTime,
boolean newChange)
Deprecated.
Acquires distributed lock for the given task.
|
ITaskLock |
getLock(IURI taskURI)
Deprecated.
Returns instance of any existing lock for the specified task instance
|
boolean |
isLightweightLocking()
Deprecated.
Whether lock service uses lightweight locking.
|
void |
releaseLock(ITaskLock lock)
Deprecated.
Releases previously acquired lock
|
void |
setLightweightLocking(boolean value)
Deprecated.
Sets lightweight locking use.
|
releaseLock
ITaskLock acquireLock(IURI sourceURI, IURI taskURI, long validTime, long waitTime, boolean newChange) throws PortalException
acquireLock
in interface IClusterLockingService
sourceURI
- source URI for the lock ownertaskURI
- uri of the task to be lockedvalidTime
- time in millis the lock will be valid. 0 - indefinitewaitTime
- waiting time to acquire a lock. 0 - immediately exit if lock can not be obtained)PortalException
ITaskLock acquireLock(IURI sourceURI, IURI taskURI, long validTime, long waitTime) throws PortalException
acquireLock
in interface IClusterLockingService
PortalException
void releaseLock(ITaskLock lock) throws PortalException
lock
- to be releasedPortalException
ITaskLock getLock(IURI taskURI) throws PortalException
getLock
in interface IClusterLockingService
taskURI
- uri of the task to return lock forPortalException
boolean isLightweightLocking()
isLightweightLocking
in interface IClusterLockingService
void setLightweightLocking(boolean value)
setLightweightLocking
in interface IClusterLockingService