Package org.apache.jackrabbit.rmi.client
Class ClientLock
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- org.apache.jackrabbit.rmi.client.ClientLock
-
- All Implemented Interfaces:
Lock
@Deprecated public class ClientLock extends ClientObject implements Lock
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Local adapter for the JCR-RMI
RemoteLockinterface. This class makes a remote lock locally available using the JCRLockinterface.- See Also:
Lock,RemoteLock
-
-
Constructor Summary
Constructors Constructor Description ClientLock(Session session, RemoteLock remote, LocalAdapterFactory factory)Deprecated.Creates a local adapter for the given remote lock.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetLockOwner()Deprecated.StringgetLockToken()Deprecated.NodegetNode()Deprecated.longgetSecondsRemaining()Deprecated.booleanisDeep()Deprecated.booleanisLive()Deprecated.booleanisLockOwningSession()Deprecated.booleanisSessionScoped()Deprecated.voidrefresh()Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
-
-
-
Constructor Detail
-
ClientLock
public ClientLock(Session session, RemoteLock remote, LocalAdapterFactory factory)
Deprecated.Creates a local adapter for the given remote lock.- Parameters:
session- current sessionremote- remote lockfactory- local adapter factory
-
-
Method Detail
-
getLockOwner
public String getLockOwner()
Deprecated.- Specified by:
getLockOwnerin interfaceLock
-
getLockToken
public String getLockToken()
Deprecated.- Specified by:
getLockTokenin interfaceLock
-
isLive
public boolean isLive() throws RepositoryExceptionDeprecated.- Specified by:
isLivein interfaceLock- Throws:
RepositoryException
-
refresh
public void refresh() throws RepositoryExceptionDeprecated.- Specified by:
refreshin interfaceLock- Throws:
RepositoryException
-
isSessionScoped
public boolean isSessionScoped()
Deprecated.- Specified by:
isSessionScopedin interfaceLock
-
getSecondsRemaining
public long getSecondsRemaining() throws RepositoryExceptionDeprecated.- Specified by:
getSecondsRemainingin interfaceLock- Throws:
RepositoryException
-
isLockOwningSession
public boolean isLockOwningSession()
Deprecated.- Specified by:
isLockOwningSessionin interfaceLock
-
-