EDU.oswego.cs.dl.util.concurrent
public class PrioritySemaphore extends QueuedSemaphore
Modifier and Type | Class and Description |
---|---|
protected static class |
PrioritySemaphore.PriorityWaitQueue |
QueuedSemaphore.WaitQueue
wq_
ONE_CENTURY, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR
Constructor and Description |
---|
PrioritySemaphore(long initialPermits)
Create a Semaphore with the given initial number of permits.
|
acquire, attempt, getSignallee, precheck, recheck, release, release
public PrioritySemaphore(long initialPermits)