public class ClientLock extends ClientObject implements javax.jcr.lock.Lock
RemoteLock
interface. This class makes a remote lock locally available using
the JCR Lock interface.Lock,
RemoteLock| Constructor and Description |
|---|
ClientLock(javax.jcr.Session session,
RemoteLock remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote lock.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLockOwner() |
String |
getLockToken() |
javax.jcr.Node |
getNode() |
long |
getSecondsRemaining() |
boolean |
isDeep() |
boolean |
isLive() |
boolean |
isLockOwningSession() |
boolean |
isSessionScoped() |
void |
refresh() |
getFactory, getItem, getNode, getNodeTypeArraypublic ClientLock(javax.jcr.Session session,
RemoteLock remote,
LocalAdapterFactory factory)
session - current sessionremote - remote lockfactory - local adapter factorypublic javax.jcr.Node getNode()
getNode in interface javax.jcr.lock.Lockpublic String getLockOwner()
getLockOwner in interface javax.jcr.lock.Lockpublic boolean isDeep()
isDeep in interface javax.jcr.lock.Lockpublic String getLockToken()
getLockToken in interface javax.jcr.lock.Lockpublic boolean isLive()
throws javax.jcr.RepositoryException
isLive in interface javax.jcr.lock.Lockjavax.jcr.RepositoryExceptionpublic void refresh()
throws javax.jcr.RepositoryException
refresh in interface javax.jcr.lock.Lockjavax.jcr.RepositoryExceptionpublic boolean isSessionScoped()
isSessionScoped in interface javax.jcr.lock.Lockpublic long getSecondsRemaining()
throws javax.jcr.RepositoryException
getSecondsRemaining in interface javax.jcr.lock.Lockjavax.jcr.RepositoryExceptionpublic boolean isLockOwningSession()
isLockOwningSession in interface javax.jcr.lock.LockCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.