public interface ResourceLock
void lock()
Lock.lock()boolean tryLock()
Lock.tryLock()boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
time - timeunit - unitInterruptedException - interruptedLock.tryLock(long, TimeUnit)void unlock()
Lock.unlock()Copyright © 2021. All rights reserved.