org.terracotta.modules.ehcache.concurrency
Class TcSync
java.lang.Object
org.terracotta.modules.ehcache.concurrency.TcSync
- All Implemented Interfaces:
- net.sf.ehcache.concurrent.Sync
public class TcSync
- extends Object
- implements net.sf.ehcache.concurrent.Sync
- Author:
- Alex Snaps
| Fields inherited from interface net.sf.ehcache.concurrent.Sync |
ONE_CENTURY, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR |
|
Method Summary |
boolean |
isHeldByCurrentThread(net.sf.ehcache.concurrent.LockType type)
|
void |
lock(net.sf.ehcache.concurrent.LockType type)
|
String |
toString()
|
boolean |
tryLock(net.sf.ehcache.concurrent.LockType type,
long timeout)
|
void |
unlock(net.sf.ehcache.concurrent.LockType type)
|
lock
public void lock(net.sf.ehcache.concurrent.LockType type)
- Specified by:
lock in interface net.sf.ehcache.concurrent.Sync
tryLock
public boolean tryLock(net.sf.ehcache.concurrent.LockType type,
long timeout)
throws InterruptedException
- Specified by:
tryLock in interface net.sf.ehcache.concurrent.Sync
- Throws:
InterruptedException
unlock
public void unlock(net.sf.ehcache.concurrent.LockType type)
- Specified by:
unlock in interface net.sf.ehcache.concurrent.Sync
isHeldByCurrentThread
public boolean isHeldByCurrentThread(net.sf.ehcache.concurrent.LockType type)
- Specified by:
isHeldByCurrentThread in interface net.sf.ehcache.concurrent.Sync
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.