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, getNodeTypeArray
public 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.Lock
public String getLockOwner()
getLockOwner
in interface javax.jcr.lock.Lock
public boolean isDeep()
isDeep
in interface javax.jcr.lock.Lock
public String getLockToken()
getLockToken
in interface javax.jcr.lock.Lock
public boolean isLive() throws javax.jcr.RepositoryException
isLive
in interface javax.jcr.lock.Lock
javax.jcr.RepositoryException
public void refresh() throws javax.jcr.RepositoryException
refresh
in interface javax.jcr.lock.Lock
javax.jcr.RepositoryException
public boolean isSessionScoped()
isSessionScoped
in interface javax.jcr.lock.Lock
public long getSecondsRemaining() throws javax.jcr.RepositoryException
getSecondsRemaining
in interface javax.jcr.lock.Lock
javax.jcr.RepositoryException
public boolean isLockOwningSession()
isLockOwningSession
in interface javax.jcr.lock.Lock
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.