Class NoopSemaphore
java.lang.Object
java.util.concurrent.Semaphore
io.helidon.common.concurrency.limits.NoopSemaphore
- All Implemented Interfaces:
- Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
A semaphore that does nothing.
 Use 
INSTANCE to get an instance of this semaphore.- See Also:
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidacquire()Deprecated, for removal: This API element is subject to removal in a future version.voidacquire(int permits) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidacquireUninterruptibly(int permits) Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.protected Collection<Thread> Deprecated, for removal: This API element is subject to removal in a future version.booleanisFair()Deprecated, for removal: This API element is subject to removal in a future version.protected voidreducePermits(int reduction) Deprecated, for removal: This API element is subject to removal in a future version.voidrelease()Deprecated, for removal: This API element is subject to removal in a future version.voidrelease(int permits) Deprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleantryAcquire(int permits) Deprecated, for removal: This API element is subject to removal in a future version.booleantryAcquire(int permits, long timeout, TimeUnit unit) Deprecated, for removal: This API element is subject to removal in a future version.booleantryAcquire(long timeout, TimeUnit unit) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.util.concurrent.SemaphoregetQueueLength, hasQueuedThreads
- 
Field Details- 
INSTANCEDeprecated, for removal: This API element is subject to removal in a future version.Singleton instance to be used whenever needed.
 
- 
- 
Method Details- 
acquireDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- acquirein class- Semaphore
- Throws:
- InterruptedException
 
- 
acquireUninterruptiblypublic void acquireUninterruptibly()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- acquireUninterruptiblyin class- Semaphore
 
- 
tryAcquirepublic boolean tryAcquire()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- tryAcquirein class- Semaphore
 
- 
tryAcquireDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- tryAcquirein class- Semaphore
- Throws:
- InterruptedException
 
- 
releasepublic void release()Deprecated, for removal: This API element is subject to removal in a future version.
- 
acquireDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- acquirein class- Semaphore
- Throws:
- InterruptedException
 
- 
acquireUninterruptiblypublic void acquireUninterruptibly(int permits) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- acquireUninterruptiblyin class- Semaphore
 
- 
tryAcquirepublic boolean tryAcquire(int permits) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- tryAcquirein class- Semaphore
 
- 
tryAcquireDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- tryAcquirein class- Semaphore
- Throws:
- InterruptedException
 
- 
releasepublic void release(int permits) Deprecated, for removal: This API element is subject to removal in a future version.
- 
availablePermitspublic int availablePermits()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- availablePermitsin class- Semaphore
 
- 
drainPermitspublic int drainPermits()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- drainPermitsin class- Semaphore
 
- 
reducePermitsprotected void reducePermits(int reduction) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- reducePermitsin class- Semaphore
 
- 
isFairpublic boolean isFair()Deprecated, for removal: This API element is subject to removal in a future version.
- 
getQueuedThreadsDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- getQueuedThreadsin class- Semaphore
 
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
FixedLimit.create()to get unlimited limit