org.terracotta.collections
Class BasicLockStrategy<K>
java.lang.Object
org.terracotta.collections.BasicLockStrategy<K>
- All Implemented Interfaces:
- LockStrategy<K>
- Direct Known Subclasses:
- HashcodeLockStrategy, NullLockStrategy, OneToOneLockStrategy
public abstract class BasicLockStrategy<K>
- extends Object
- implements LockStrategy<K>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicLockStrategy
public BasicLockStrategy()
beginLock
public void beginLock(String lockID,
int type)
- Specified by:
beginLock in interface LockStrategy<K>
pinLock
public void pinLock(String lockID)
- Specified by:
pinLock in interface LockStrategy<K>
unpinLock
public void unpinLock(String lockID)
- Specified by:
unpinLock in interface LockStrategy<K>
commitLock
public void commitLock(String lockID,
int type)
- Specified by:
commitLock in interface LockStrategy<K>
tryBeginLock
public boolean tryBeginLock(String lockID,
int type,
long nanos)
throws InterruptedException
- Specified by:
tryBeginLock in interface LockStrategy<K>
- Throws:
InterruptedException
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.