Package com.alachisoft.ncache.client
Class LockHandle
- java.lang.Object
-
- com.alachisoft.ncache.client.LockHandle
-
public final class LockHandle extends java.lang.ObjectAn instance of this class is used to lock and unlock cache items in pessimistic concurrency model.
-
-
Constructor Summary
Constructors Constructor Description LockHandle()It is the default constructor.LockHandle(LockHandle lockHandle)Creates a new LockHandle, populates attributes from the specified LockHandle.LockHandle(java.lang.String lockId, java.util.Date lockDate)Create a new LockHandle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetLockDate()Gets the LockDate.java.lang.StringgetLockId()Get LockId.voidsetLockDate(java.util.Date lockDate)Sets the LockDate.voidsetLockId(java.lang.String lockId)Sets the LockId.
-
-
-
Constructor Detail
-
LockHandle
public LockHandle()
It is the default constructor.
-
LockHandle
public LockHandle(java.lang.String lockId, java.util.Date lockDate)Create a new LockHandle.- Parameters:
lockId- The LockId of the specific LockHandle.lockDate- The allocation date of the LockHandle.
-
LockHandle
public LockHandle(LockHandle lockHandle)
Creates a new LockHandle, populates attributes from the specified LockHandle.- Parameters:
lockHandle- The LockHandle instance.
-
-
Method Detail
-
getLockId
public java.lang.String getLockId()
Get LockId.- Returns:
- It returns the LockId.
-
setLockId
public void setLockId(java.lang.String lockId)
Sets the LockId.- Parameters:
lockId- New LockId.
-
getLockDate
public java.util.Date getLockDate()
Gets the LockDate.- Returns:
- It returns the LockDate instance.
-
setLockDate
public void setLockDate(java.util.Date lockDate)
Sets the LockDate.- Parameters:
lockDate- New LockDate.
-
-