public final class ResourceLock extends ReentrantLock implements AutoCloseable
| 构造器和说明 |
|---|
ResourceLock() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
ResourceLock |
obtain() |
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlockpublic ResourceLock obtain()
public void close()
close 在接口中 AutoCloseableCopyright © 2025. All rights reserved.