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