org.terracotta.offheapstore.util
Class NoOpLock
java.lang.Object
org.terracotta.offheapstore.util.NoOpLock
- All Implemented Interfaces:
- Lock
public final class NoOpLock
- extends Object
- implements Lock
- Author:
- cdennis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final NoOpLock INSTANCE
lock
public void lock()
- Specified by:
lock in interface Lock
lockInterruptibly
public void lockInterruptibly()
throws InterruptedException
- Specified by:
lockInterruptibly in interface Lock
- Throws:
InterruptedException
tryLock
public boolean tryLock()
- Specified by:
tryLock in interface Lock
tryLock
public boolean tryLock(long l,
TimeUnit tu)
throws InterruptedException
- Specified by:
tryLock in interface Lock
- Throws:
InterruptedException
unlock
public void unlock()
- Specified by:
unlock in interface Lock
newCondition
public Condition newCondition()
- Specified by:
newCondition in interface Lock
Copyright © 2015. All Rights Reserved.