org.terracotta.modules.ehcache.transaction
Class ReadCommittedClusteredSoftLock

java.lang.Object
  extended by org.terracotta.modules.ehcache.transaction.ReadCommittedClusteredSoftLock
All Implemented Interfaces:
SoftLock

public class ReadCommittedClusteredSoftLock
extends Object
implements SoftLock

Author:
Ludovic Orban

Method Summary
 void clear()
           
 void clearTryLock()
           
 boolean equals(Object object)
           
 void freeze()
           
 Element getElement(TransactionID currentTransactionId, SoftLockID softLockId)
           
 Object getKey()
           
 TransactionID getTransactionID()
           
 int hashCode()
           
 boolean isExpired()
           
 void lock()
           
 String toString()
           
 boolean tryLock(long ms)
           
 void unfreeze()
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getKey

public Object getKey()
Specified by:
getKey in interface SoftLock

getElement

public Element getElement(TransactionID currentTransactionId,
                          SoftLockID softLockId)
Specified by:
getElement in interface SoftLock

getTransactionID

public TransactionID getTransactionID()

lock

public void lock()
Specified by:
lock in interface SoftLock

tryLock

public boolean tryLock(long ms)
                throws InterruptedException
Specified by:
tryLock in interface SoftLock
Throws:
InterruptedException

clearTryLock

public void clearTryLock()
Specified by:
clearTryLock in interface SoftLock

unlock

public void unlock()
Specified by:
unlock in interface SoftLock

freeze

public void freeze()
Specified by:
freeze in interface SoftLock

unfreeze

public void unfreeze()
Specified by:
unfreeze in interface SoftLock

isExpired

public boolean isExpired()
Specified by:
isExpired in interface SoftLock

clear

public void clear()

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.