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 RuntimeManagerLock
public boolean tryLock(long units, TimeUnit timeUnit) throws InterruptedException
tryLock
in interface RuntimeManagerLock
InterruptedException
public void lockInterruptible() throws InterruptedException
lockInterruptible
in interface RuntimeManagerLock
InterruptedException
public void unlock()
unlock
in interface RuntimeManagerLock
public void forceUnlock()
forceUnlock
in interface RuntimeManagerLock
public boolean hasQueuedThreads()
hasQueuedThreads
in interface RuntimeManagerLock
public boolean isHeldByCurrentThread()
isHeldByCurrentThread
in interface RuntimeManagerLock
public int getQueueLength()
getQueueLength
in interface RuntimeManagerLock
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.