public class DebugDisabledTimedLock extends Object implements DebuggableTimedLock
private final Lock lock
public DebugDisabledTimedLock(Lock lock)
public boolean tryLock()
tryLock
in interface DebuggableTimedLock
public boolean tryLock(long timeout, TimeUnit timeUnit)
tryLock
in interface DebuggableTimedLock
timeout
- the duration of time to wait for the locktimeUnit
- the unit which provides meaning to the durationpublic void lock()
lock
in interface DebuggableTimedLock
public void unlock(String task)
unlock
in interface DebuggableTimedLock
Copyright © 2015 Apache NiFi Project. All rights reserved.