Class ConcurrencyLimiter

java.lang.Object
io.quarkus.websockets.next.runtime.ConcurrencyLimiter

class ConcurrencyLimiter extends Object
Used to limit concurrent invocations.
  • Constructor Details

  • Method Details

    • newComplete

      ConcurrencyLimiter.PromiseComplete newComplete(io.vertx.core.Promise<Void> promise)
      This method must be always used before
      invalid reference
      #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

      void run(io.vertx.core.Context context, Runnable action)
      Run or queue up the given action.
      Parameters:
      context -
      action -