public class SelfReleaseRuntimeManagerLock extends Object implements RuntimeManagerLock
| Constructor and Description |
|---|
SelfReleaseRuntimeManagerLock() |
| Modifier and Type | Method and Description |
|---|---|
void |
forceUnlock() |
int |
getQueueLength() |
boolean |
hasQueuedThreads() |
boolean |
isHeldByCurrentThread() |
void |
lock() |
void |
lockInterruptible() |
String |
toString() |
boolean |
tryLock(long units,
TimeUnit timeUnit) |
void |
unlock() |
public void lock()
lock in interface RuntimeManagerLockpublic boolean tryLock(long units,
TimeUnit timeUnit)
throws InterruptedException
tryLock in interface RuntimeManagerLockInterruptedExceptionpublic void lockInterruptible()
throws InterruptedException
lockInterruptible in interface RuntimeManagerLockInterruptedExceptionpublic void unlock()
unlock in interface RuntimeManagerLockpublic void forceUnlock()
forceUnlock in interface RuntimeManagerLockpublic boolean hasQueuedThreads()
hasQueuedThreads in interface RuntimeManagerLockpublic boolean isHeldByCurrentThread()
isHeldByCurrentThread in interface RuntimeManagerLockpublic int getQueueLength()
getQueueLength in interface RuntimeManagerLockCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.