Uses of Interface
org.tquadrat.foundation.lang.AutoSemaphore.Token
Packages that use AutoSemaphore.Token
Package
Description
Some general language extensions provided by the Foundation
Library.
The internal implementations of some general language extensions provided
by the Foundation Library.
-
Uses of AutoSemaphore.Token in org.tquadrat.foundation.lang
Methods in org.tquadrat.foundation.lang that return AutoSemaphore.TokenModifier and TypeMethodDescriptiondefault AutoSemaphore.TokenAutoSemaphore.acquireToken()Acquires a permit from this semaphore, blocking until one is available, or the thread is interrupted, and returns a token object that is used fortry-with-resources.AutoSemaphore.acquireToken(int permits) Acquires the given number of permits from this semaphore, blocking until all are available, or the thread is interrupted, and returns a token object that is used fortry-with-resources.default AutoSemaphore.TokenAutoSemaphore.acquireTokenUninterruptibly()Acquires a permit from this semaphore, blocking until one is available, and returns a token object that is used fortry-with-resources.AutoSemaphore.acquireTokenUninterruptibly(int permits) Acquires the given number of permits from this semaphore, blocking until all are available, and returns a token object that is used fortry-with-resources. -
Uses of AutoSemaphore.Token in org.tquadrat.foundation.lang.internal
Classes in org.tquadrat.foundation.lang.internal that implement AutoSemaphore.TokenModifier and TypeClassDescriptionfinal classThe implementation ofAutoSemaphore.Token.final classThe token that holds the permits to be released when atry-with-resourcesblock is left or the timeout has expired.Methods in org.tquadrat.foundation.lang.internal that return AutoSemaphore.TokenModifier and TypeMethodDescriptionfinal AutoSemaphore.TokenAutoSemaphoreImpl.acquireToken(int permits) Acquires the given number of permits from this semaphore, blocking until all are available, or the thread is interrupted, and returns a token object that is used fortry-with-resources.final AutoSemaphore.TokenTimeoutSemaphoreImpl.acquireToken(int permits) Acquires the given number of permits from this semaphore, blocking until all are available, or the thread is interrupted, and returns a token object that is used fortry-with-resources.final AutoSemaphore.TokenAutoSemaphoreImpl.acquireTokenUninterruptibly(int permits) Acquires the given number of permits from this semaphore, blocking until all are available, and returns a token object that is used fortry-with-resources.final AutoSemaphore.TokenTimeoutSemaphoreImpl.acquireTokenUninterruptibly(int permits) Acquires the given number of permits from this semaphore, blocking until all are available, and returns a token object that is used fortry-with-resources.private final AutoSemaphore.TokenTimeoutSemaphoreImpl.createToken(int permits) Creates a token and adds to the registry.
