public class ClientLock extends ClientObject implements Lock
RemoteLock
interface. This class makes a remote lock locally available using
the JCR Lock
interface.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 |
---|---|
String |
getLockOwner() |
String |
getLockToken() |
Node |
getNode() |
long |
getSecondsRemaining() |
boolean |
isDeep() |
boolean |
isLive() |
boolean |
isLockOwningSession() |
boolean |
isSessionScoped() |
void |
refresh() |
getFactory, getItem, getNode, getNodeTypeArray
public ClientLock(Session session, RemoteLock remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote lockfactory
- local adapter factorypublic String getLockOwner()
getLockOwner
in interface Lock
public String getLockToken()
getLockToken
in interface Lock
public boolean isLive() throws RepositoryException
isLive
in interface Lock
RepositoryException
public void refresh() throws RepositoryException
refresh
in interface Lock
RepositoryException
public boolean isSessionScoped()
isSessionScoped
in interface Lock
public long getSecondsRemaining() throws RepositoryException
getSecondsRemaining
in interface Lock
RepositoryException
public boolean isLockOwningSession()
isLockOwningSession
in interface Lock
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.