public class ClientLock extends ClientObject
RemoteLock
interface. This class makes a remote lock locally available using
the JCR Lock
interface.javax.jcr.lock.Lock
,
RemoteLock
Constructor and Description |
---|
ClientLock(Session session,
RemoteLock remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote lock.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLockOwner() |
java.lang.String |
getLockToken() |
Node |
getNode() |
long |
getSecondsRemaining() |
boolean |
isDeep() |
boolean |
isLive() |
boolean |
isLockOwningSession() |
boolean |
isSessionScoped() |
void |
refresh() |
public ClientLock(Session session, RemoteLock remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote lockfactory
- local adapter factorypublic Node getNode()
public java.lang.String getLockOwner()
public boolean isDeep()
public java.lang.String getLockToken()
public boolean isLive() throws RepositoryException
RepositoryException
public void refresh() throws RepositoryException
RepositoryException
public boolean isSessionScoped()
public long getSecondsRemaining() throws RepositoryException
RepositoryException
public boolean isLockOwningSession()
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"