public final class RefreshLockResult extends Object
Lock.refreshLock(java.lang.String, long)
operation.Constructor and Description |
---|
RefreshLockResult(boolean shared,
boolean deep,
long timeout,
String owner)
Initializes new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getOwner()
Retrieves information about the principal taking out a lock.
|
long |
getTimeout()
Retrieves timeout.
|
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.
|
public RefreshLockResult(boolean shared, boolean deep, long timeout, String owner)
shared
- Determines whether lock is shared.deep
- Indicates whether a lock is enforceable on the subtree.timeout
- Timeout value in milliseconds. -1 means never.owner
- Principal taking out a lock.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.