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(forRemoval=true) public class ClientLock extends ClientObject implements Lock
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.Local adapter for the JCR-RMI
RemoteLock
interface. This class makes a remote lock locally available using the JCRLock
interface.- See Also:
Lock
,RemoteLock
-
-
Constructor Summary
Constructors Constructor Description ClientLock(Session session, RemoteLock remote, LocalAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a local adapter for the given remote lock.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getLockOwner()
Deprecated, for removal: This API element is subject to removal in a future version.String
getLockToken()
Deprecated, for removal: This API element is subject to removal in a future version.Node
getNode()
Deprecated, for removal: This API element is subject to removal in a future version.long
getSecondsRemaining()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isDeep()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isLive()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isLockOwningSession()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isSessionScoped()
Deprecated, for removal: This API element is subject to removal in a future version.void
refresh()
Deprecated, for removal: This API element is subject to removal in a future version.-
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, for removal: This API element is subject to removal in a future version.Creates a local adapter for the given remote lock.- Parameters:
session
- current sessionremote
- remote lockfactory
- local adapter factory
-
-
Method Detail
-
getNode
public Node getNode()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getLockOwner
public String getLockOwner()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLockOwner
in interfaceLock
-
isDeep
public boolean isDeep()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getLockToken
public String getLockToken()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLockToken
in interfaceLock
-
isLive
public boolean isLive() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isLive
in interfaceLock
- Throws:
RepositoryException
-
refresh
public void refresh() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
refresh
in interfaceLock
- Throws:
RepositoryException
-
isSessionScoped
public boolean isSessionScoped()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isSessionScoped
in interfaceLock
-
getSecondsRemaining
public long getSecondsRemaining() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSecondsRemaining
in interfaceLock
- Throws:
RepositoryException
-
isLockOwningSession
public boolean isLockOwningSession()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isLockOwningSession
in interfaceLock
-
-