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