Package org.apache.nifi.util.concurrency
Class DebugDisabledTimedLock
java.lang.Object
org.apache.nifi.util.concurrency.DebugDisabledTimedLock
- All Implemented Interfaces:
DebuggableTimedLock
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
lock
-
-
Constructor Details
-
DebugDisabledTimedLock
-
-
Method Details
-
tryLock
public boolean tryLock()- Specified by:
tryLock
in interfaceDebuggableTimedLock
- Returns:
- true if lock obtained; false otherwise
-
tryLock
- Specified by:
tryLock
in interfaceDebuggableTimedLock
- Parameters:
timeout
- the duration of time to wait for the locktimeUnit
- the unit which provides meaning to the duration- Returns:
- true if obtained lock in time; false otherwise
-
lock
public void lock()- Specified by:
lock
in interfaceDebuggableTimedLock
-
unlock
- Specified by:
unlock
in interfaceDebuggableTimedLock
-