public class FrontCheckLock extends ReentrantLock
| 构造器和说明 |
|---|
FrontCheckLock() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
AtomicInteger |
getCount() |
String |
getName() |
int |
hashCode() |
static boolean |
lock(String lockName,
long timeout,
TimeUnit unit) |
void |
setName(String name) |
static void |
unlock(String lockName) |
int |
updateCount(int delta) |
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlockpublic String getName()
public void setName(String name)
public AtomicInteger getCount()
public int updateCount(int delta)
public static void unlock(String lockName)
Copyright © 2025. All rights reserved.