public interface ResourceLock
| Modifier and Type | Method and Description |
|---|---|
void |
lock() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
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.