|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Lock
This interface holds extensions made in JCR 2.0 while work is in progress implementing JCR 2.0.
| Method Summary | |
|---|---|
long |
getSecondsRemaining()
Returns the seconds remaining until this locks times out ( Long.MAX_VALUE if the timeout is unknown or infinite). |
boolean |
isLockOwningSession()
Returns true if the current session is the owner of this
lock, either because it is session-scoped and bound to this session or
open-scoped and this session currently holds the token for this lock. |
| Methods inherited from interface javax.jcr.lock.Lock |
|---|
getLockOwner, getLockToken, getNode, isDeep, isLive, isSessionScoped, refresh |
| Method Detail |
|---|
long getSecondsRemaining()
throws RepositoryException
Long.MAX_VALUE if the timeout is unknown or infinite).
long
RepositoryException - If an error occurs.boolean isLockOwningSession()
true if the current session is the owner of this
lock, either because it is session-scoped and bound to this session or
open-scoped and this session currently holds the token for this lock.
Returns false otherwise.
boolean.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||