Class ConcurrencyLimiter
java.lang.Object
io.quarkus.websockets.next.runtime.ConcurrencyLimiter
Used to limit concurrent invocations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record(package private) class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ConcurrencyLimiter.PromiseCompletenewComplete(io.vertx.core.Promise<Void> promise) This method must be always used before#run(Runnable)and the returned callback must be always invoked when an async computation completes.(package private) voidRun or queue up the given action.
-
Constructor Details
-
ConcurrencyLimiter
ConcurrencyLimiter(WebSocketConnectionBase connection)
-
-
Method Details
-
newComplete
This method must be always used before#run(Runnable)and the returned callback must be always invoked when an async computation completes.- Parameters:
promise-- Returns:
- a new callback to complete the given promise
-
run
Run or queue up the given action.- Parameters:
action-context-
-