Class NoOpLock
java.lang.Object
org.agrona.concurrent.NoOpLock
- All Implemented Interfaces:
Lock
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
As there is no instance state then this object can be used to save on allocation.
-
-
Constructor Details
-
NoOpLock
public NoOpLock()Create a new instance.
-
-
Method Details
-
lock
-
lockInterruptibly
public void lockInterruptibly()Proceeds as if the lock has been acquired.- Specified by:
lockInterruptiblyin interfaceLock
-
tryLock
-
tryLock
-
unlock
-
newCondition
Not supported.- Specified by:
newConditionin interfaceLock- Returns:
- never returns.
- Throws:
UnsupportedOperationException- if used.
-