Remote version of the JCR Lock
interface.
Used by the ServerLock
and ClientLock
adapter classes to provide transparent RMI access to remote locks.
The methods in this interface are documented only with a reference to a corresponding Lock method. The remote object will simply forward the method call to the underlying Lock instance. Return values and possible exceptions are copied over the network. RMI errors are signaled with RemoteExceptions.
@Deprecated public interface RemoteLock extends Remote
Lock
,
ClientLock
,
ServerLock
Modifier and Type | Method and Description |
---|---|
String |
getLockOwner()
Deprecated.
Remote version of the
Lock.getLockOwner() method. |
String |
getLockToken()
Deprecated.
Remote version of the
Lock.getLockToken() method. |
RemoteNode |
getNode()
Deprecated.
Remote version of the
Lock.getNode() method. |
long |
getSecondsRemaining()
Deprecated.
Remote version of the
Lock.getSecondsRemaining() () Lock.getSecondsRemaining()} method. |
boolean |
isDeep()
Deprecated.
Remote version of the
Lock.isDeep() method. |
boolean |
isLive()
Deprecated.
Remote version of the
Lock.isLive() method. |
boolean |
isLockOwningSession()
Deprecated.
Remote version of the
Lock.isLockOwningSession() () Lock.isLockOwningSession()} method. |
boolean |
isSessionScoped()
Deprecated.
Remote version of the
Lock.isSessionScoped() () Lock.isSessionScoped()} method. |
void |
refresh()
Deprecated.
Remote version of the
Lock.refresh() method. |
RemoteNode getNode() throws RepositoryException, RemoteException
Lock.getNode()
method.RepositoryException
- on repository errorsRemoteException
- on RMI errorsString getLockOwner() throws RemoteException
Lock.getLockOwner()
method.RemoteException
- on RMI errorsboolean isDeep() throws RemoteException
Lock.isDeep()
method.true
if the lock is deep,
false
otherwiseRemoteException
- on RMI errorsString getLockToken() throws RemoteException
Lock.getLockToken()
method.RemoteException
- on RMI errorsboolean isLive() throws RepositoryException, RemoteException
Lock.isLive()
method.true
if the lock is live,
false
otherwiseRepositoryException
- on repository errorsRemoteException
- on RMI errorsvoid refresh() throws RepositoryException, RemoteException
Lock.refresh()
method.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean isSessionScoped() throws RemoteException
Lock.isSessionScoped()
() Lock.isSessionScoped()} method.true
if the lock is live,
false
otherwiseRemoteException
- on RMI errorslong getSecondsRemaining() throws RepositoryException, RemoteException
Lock.getSecondsRemaining()
() Lock.getSecondsRemaining()} method.RepositoryException
- on repository errorsRemoteException
- on RMI errorsboolean isLockOwningSession() throws RemoteException
Lock.isLockOwningSession()
() Lock.isLockOwningSession()} method.boolean
.RemoteException
- on RMI errorsCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.