public interface IClusterLockingService
Modifier and Type | Field and Description |
---|---|
static int |
LOCK_MAX_TIME |
static int |
LOCK_MAX_WAIT_TIME |
static String |
LOCKING_SERVICE_NAME |
static int |
TASK_LOCK_MAX_TIME
Deprecated.
|
static int |
TASK_LOCK_MAX_WAIT_TIME
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IClusterLock |
acquireLock(IURI uri,
long validTime,
long waitTime)
Acquires distributed lock for the given thing.
|
IClusterLock |
acquireLock(IURI uri,
long validTime,
long waitTime,
boolean newChange)
Deprecated.
|
IClusterLock |
getLock(IURI uri)
Returns instance of any existing lock for the specified thing
|
boolean |
isLightweightLocking() |
void |
releaseLock(IClusterLock lock)
Releases previously acquired lock
|
void |
removeFromTLS(IClusterLock lock) |
void |
setLightweightLocking(boolean value)
Sets lightweight locking use.
|
static final String LOCKING_SERVICE_NAME
static final int LOCK_MAX_WAIT_TIME
static final int LOCK_MAX_TIME
@Deprecated static final int TASK_LOCK_MAX_WAIT_TIME
@Deprecated static final int TASK_LOCK_MAX_TIME
IClusterLock acquireLock(IURI uri, long validTime, long waitTime) throws PortalException
uri
- of the thing 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
@Deprecated IClusterLock acquireLock(IURI uri, long validTime, long waitTime, boolean newChange) throws PortalException
uri
- validTime
- waitTime
- newChange
- PortalException
void removeFromTLS(IClusterLock lock)
lock
- void releaseLock(IClusterLock lock) throws PortalException
lock
- to be releasedPortalException
IClusterLock getLock(IURI uri) throws PortalException
uri
- uri of the thing to return lock forPortalException
boolean isLightweightLocking()
void setLightweightLocking(boolean value)
value
-