Package org.apache.jackrabbit.rmi.remote
Interface RemoteLock
-
- All Superinterfaces:
Remote
- All Known Implementing Classes:
ServerLock
@Deprecated(forRemoval=true) public interface RemoteLock extends Remote
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote version of the JCR
Lock
interface. Used by theServerLock
andClientLock
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.
- See Also:
Lock
,ClientLock
,ServerLock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String
getLockOwner()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.getLockOwner()
method.String
getLockToken()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.getLockToken()
method.RemoteNode
getNode()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.getNode()
method.long
getSecondsRemaining()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.getSecondsRemaining()
() Lock.getSecondsRemaining()} method.boolean
isDeep()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.isDeep()
method.boolean
isLive()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.isLive()
method.boolean
isLockOwningSession()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.isLockOwningSession()
() Lock.isLockOwningSession()} method.boolean
isSessionScoped()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.isSessionScoped()
() Lock.isSessionScoped()} method.void
refresh()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.refresh()
method.
-
-
-
Method Detail
-
getNode
RemoteNode getNode() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.getNode()
method.- Returns:
- remote node
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors- Since:
- JCR-RMI 2.0
-
getLockOwner
String getLockOwner() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.getLockOwner()
method.- Returns:
- lock owner
- Throws:
RemoteException
- on RMI errors
-
isDeep
boolean isDeep() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.isDeep()
method.- Returns:
true
if the lock is deep,false
otherwise- Throws:
RemoteException
- on RMI errors
-
getLockToken
String getLockToken() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.getLockToken()
method.- Returns:
- lock token
- Throws:
RemoteException
- on RMI errors
-
isLive
boolean isLive() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.isLive()
method.- Returns:
true
if the lock is live,false
otherwise- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
refresh
void refresh() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.refresh()
method.- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
isSessionScoped
boolean isSessionScoped() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.isSessionScoped()
() Lock.isSessionScoped()} method.- Returns:
true
if the lock is live,false
otherwise- Throws:
RemoteException
- on RMI errors
-
getSecondsRemaining
long getSecondsRemaining() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.getSecondsRemaining()
() Lock.getSecondsRemaining()} method.- Returns:
- the number of seconds remaining until this lock times out.
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
isLockOwningSession
boolean isLockOwningSession() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theLock.isLockOwningSession()
() Lock.isLockOwningSession()} method.- Returns:
- a
boolean
. - Throws:
RemoteException
- on RMI errors
-
-