public final class LockInfo extends Object
Constructor and Description |
---|
LockInfo()
Initialize
LockInfo instance |
LockInfo(boolean shared,
boolean deep,
String token,
long timeout,
String owner)
Initialize
LockInfo instance |
Modifier and Type | Method and Description |
---|---|
String |
getOwner()
Retrieves information about the principal taking out a lock.
|
long |
getTimeout()
Retrieves lock expiration timeout in milliseconds.
|
String |
getToken()
Retrieves lock token associated with a lock.
|
boolean |
isDeep()
Indicates whether a lock is enforceable on the subtree.
|
boolean |
isShared()
Determines whether lock is shared.
|
void |
setDeep(boolean deep)
Sets flag which indicates whether the lock is enforceable on the subtree.
|
void |
setOwner(String owner)
Sets information about the principal taking out a lock.
|
void |
setShared(boolean shared)
Sets shared flag of the lock.
|
void |
setTimeout(long timeout)
Sets lock expirate timeout.
|
void |
setToken(String token)
Sets lock token associated with a lock.
|
public LockInfo()
LockInfo
instancepublic LockInfo(boolean shared, boolean deep, String token, long timeout, String owner)
LockInfo
instanceshared
- Sets shared flag of the lock.deep
- Sets flag which indicates whether the lock is enforceable on the subtree.token
- Sets lock token associated with a lock.timeout
- Sets lock expiration timeout.owner
- Sets information about the principal taking out a lock.public String getToken()
public void setToken(String token)
token
- Lock token.public boolean isShared()
public void setShared(boolean shared)
shared
- Whether the lock is shared.public boolean isDeep()
public void setDeep(boolean deep)
deep
- Whether a lock is enforceable on the subtree.public long getTimeout()
public void setTimeout(long timeout)
timeout
- Timeout value in milliseconds. -1 means never.public String getOwner()
public void setOwner(String owner)
owner
- Principal.Copyright © ITHit. All Rights Reserved.