public interface RemoteLock
extends java.rmi.Remote
javax.jcr.lock.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.
javax.jcr.lock.Lock
,
ClientLock
,
ServerLock
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLockOwner()
Remote version of the
Lock.getLockOwner() method. |
java.lang.String |
getLockToken()
Remote version of the
Lock.getLockToken() method. |
RemoteNode |
getNode()
Remote version of the
Lock.getNode() method. |
long |
getSecondsRemaining()
Remote version of the
javax.jcr.lock.Lock#getSecondsRemaining() () Lock.getSecondsRemaining()} method. |
boolean |
isDeep()
Remote version of the
Lock.isDeep() method. |
boolean |
isLive()
Remote version of the
Lock.isLive() method. |
boolean |
isLockOwningSession()
Remote version of the
javax.jcr.lock.Lock#isLockOwningSession() () Lock.isLockOwningSession()} method. |
boolean |
isSessionScoped()
Remote version of the
javax.jcr.lock.Lock#isSessionScoped() () Lock.isSessionScoped()} method. |
void |
refresh()
Remote version of the
Lock.refresh() method. |
RemoteNode getNode() throws RepositoryException, java.rmi.RemoteException
Lock.getNode()
method.RepositoryException
- on repository errorsjava.rmi.RemoteException
- on RMI errorsjava.lang.String getLockOwner() throws java.rmi.RemoteException
Lock.getLockOwner()
method.java.rmi.RemoteException
- on RMI errorsboolean isDeep() throws java.rmi.RemoteException
Lock.isDeep()
method.true
if the lock is deep,
false
otherwisejava.rmi.RemoteException
- on RMI errorsjava.lang.String getLockToken() throws java.rmi.RemoteException
Lock.getLockToken()
method.java.rmi.RemoteException
- on RMI errorsboolean isLive() throws RepositoryException, java.rmi.RemoteException
Lock.isLive()
method.true
if the lock is live,
false
otherwiseRepositoryException
- on repository errorsjava.rmi.RemoteException
- on RMI errorsvoid refresh() throws RepositoryException, java.rmi.RemoteException
Lock.refresh()
method.RepositoryException
- on repository errorsjava.rmi.RemoteException
- on RMI errorsboolean isSessionScoped() throws java.rmi.RemoteException
javax.jcr.lock.Lock#isSessionScoped()
() Lock.isSessionScoped()} method.true
if the lock is live,
false
otherwisejava.rmi.RemoteException
- on RMI errorslong getSecondsRemaining() throws RepositoryException, java.rmi.RemoteException
javax.jcr.lock.Lock#getSecondsRemaining()
() Lock.getSecondsRemaining()} method.RepositoryException
- on repository errorsjava.rmi.RemoteException
- on RMI errorsboolean isLockOwningSession() throws java.rmi.RemoteException
javax.jcr.lock.Lock#isLockOwningSession()
() Lock.isLockOwningSession()} method.boolean
.java.rmi.RemoteException
- on RMI errors"Copyright © 2010 - 2019 Adobe Systems Incorporated. All Rights Reserved"