public class SimpleLock<L> extends Object implements Lock
Constructor and Description |
---|
SimpleLock(L label) |
Modifier and Type | Method and Description |
---|---|
L |
getLabel() |
int |
getQueueLength()
Returns an estimate of the number of threads waiting to
acquire this lock.
|
void |
lock(long timeout) |
void |
unlock() |
public SimpleLock(L label)
public void lock(long timeout) throws LockException
lock
in interface Lock
LockException
public int getQueueLength()
getQueueLength
in interface Lock
Copyright © 2015 Lucee