com.alachisoft.jvcache.web.caching
Class LockHandle

java.lang.Object
  extended by com.alachisoft.jvcache.web.caching.LockHandle

public final class LockHandle
extends java.lang.Object

An instance of this class is used to lock and unlock the cache items in pessimistic concurrency model.


Constructor Summary
LockHandle()
          Default constructor
LockHandle(java.lang.String lockId, java.util.Date lockDate)
          Create a new LockHandle
 
Method Summary
 java.util.Date getLockDate()
          Get lock date
 java.lang.String getLockId()
          Get lock id
 void setLockDate(java.util.Date lockDate)
          Set lock date
 void setLockId(java.lang.String lockId)
          Set lock id
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockHandle

public LockHandle()
Default constructor


LockHandle

public LockHandle(java.lang.String lockId,
                  java.util.Date lockDate)
Create a new LockHandle

Parameters:
lockId - Lock id
lockDate - Lock date
Method Detail

getLockId

public java.lang.String getLockId()
Get lock id

Returns:
Lock id

setLockId

public void setLockId(java.lang.String lockId)
Set lock id

Parameters:
lockId - New lock id

getLockDate

public java.util.Date getLockDate()
Get lock date

Returns:
Lock date

setLockDate

public void setLockDate(java.util.Date lockDate)
Set lock date

Parameters:
lockDate - New lock date