public interface LockInfo
| Modifier and Type | Method and Description |
|---|---|
void |
addSharedLockToken(java.lang.String token)
Adds new shared lock token to sharedLockTokens list.
|
java.lang.String |
getDepth()
Returns lock depth
|
java.lang.String |
getExclusiveLockToken()
Getter for exclusive lock token.
|
java.util.Date |
getExpires()
Retrieve the expiry date/time for this lock, or null if it never expires.
|
java.lang.String |
getOwner()
Retrieves the username of the lock owner.
|
long |
getRemainingTimeoutSeconds()
Retrieve the remaining time before the lock expires, in seconds
|
java.util.concurrent.locks.ReentrantReadWriteLock |
getRWLock()
Retrieves the
ReentrantReadWriteLock associated with this LockInfo. |
java.lang.String |
getScope()
Returns lock scope
|
java.util.Set |
getSharedLockTokens()
Getter for sharedLockTokens list.
|
boolean |
isExclusive()
Is it an exclusive lock?
|
boolean |
isExpired()
Whether this lock has expired.
|
boolean |
isLocked()
Returns true if node has shared or exclusive locks
|
boolean |
isShared()
Is it a shared lock?
|
void |
setDepth(java.lang.String depth)
Setter for lock depth
|
void |
setExclusiveLockToken(java.lang.String token)
Setter for exclusive lock token
|
void |
setExpires(java.util.Date expires)
Set the expiry date/time for this lock.
|
void |
setOwner(java.lang.String owner)
Set the username of who owns the lock.
|
void |
setScope(java.lang.String scope)
Setter for lock scope.
|
void |
setSharedLockTokens(java.util.Set sharedLockTokens)
Setter for sharedLockTokens list.
|
void |
setTimeoutMinutes(int lockTimeoutMins)
Sets the expiry date/time to lockTimeout minutes into the future.
|
void |
setTimeoutSeconds(int lockTimeoutSecs)
Sets the expiry date/time to lockTimeout seconds into the future.
|
java.lang.String |
toString()
Return the lock info as a string
|
java.util.concurrent.locks.ReentrantReadWriteLock getRWLock()
ReentrantReadWriteLock associated with this LockInfo. This is
to allow client code to protect against invalid concurrent access to the state of
this class.
Not to be confused with WebDAV locks.
boolean isLocked()
void setExclusiveLockToken(java.lang.String token)
token - Lock tokenjava.lang.String getExclusiveLockToken()
void setScope(java.lang.String scope)
scope - java.lang.String getScope()
void setDepth(java.lang.String depth)
depth - lock depthjava.lang.String getDepth()
java.util.Set getSharedLockTokens()
void setSharedLockTokens(java.util.Set sharedLockTokens)
sharedLockTokens - void addSharedLockToken(java.lang.String token)
token - The token to add.boolean isShared()
java.lang.String toString()
toString in class java.lang.Objectboolean isExpired()
boolean isExclusive()
java.lang.String getOwner()
void setOwner(java.lang.String owner)
owner - Owner's usernamevoid setExpires(java.util.Date expires)
expires - the expires to setjava.util.Date getExpires()
long getRemainingTimeoutSeconds()
void setTimeoutSeconds(int lockTimeoutSecs)
lockTimeout - void setTimeoutMinutes(int lockTimeoutMins)
lockTimeoutMins - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.