org.terracotta.modules.ehcache.transaction
Class ReadCommittedClusteredSoftLock
java.lang.Object
org.terracotta.modules.ehcache.transaction.ReadCommittedClusteredSoftLock
- All Implemented Interfaces:
- SoftLock
public class ReadCommittedClusteredSoftLock
- extends Object
- implements SoftLock
- Author:
- Ludovic Orban
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.