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, 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–2024 The Apache Software Foundation. All rights reserved.