Class QuarkusWorkerPoolRegistry

java.lang.Object
io.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry
io.quarkus.smallrye.reactivemessaging.runtime.QuarkusWorkerPoolRegistry

@Alternative @Priority(1) @ApplicationScoped public class QuarkusWorkerPoolRegistry extends io.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry
  • Field Details

    • DEFAULT_VIRTUAL_THREAD_WORKER

      public static final String DEFAULT_VIRTUAL_THREAD_WORKER
      See Also:
    • executionHolder

      @Inject io.smallrye.reactive.messaging.providers.connectors.ExecutionHolder executionHolder
  • Constructor Details

    • QuarkusWorkerPoolRegistry

      public QuarkusWorkerPoolRegistry()
  • Method Details

    • terminate

      public void terminate(@Observes(notifyObserver=IF_EXISTS) @Priority(100) @BeforeDestroyed(jakarta.enterprise.context.ApplicationScoped.class) Object event)
      Overrides:
      terminate in class io.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry
    • executeWork

      public <T> io.smallrye.mutiny.Uni<T> executeWork(io.vertx.mutiny.core.Context currentContext, io.smallrye.mutiny.Uni<T> uni, String workerName, boolean ordered)
      Overrides:
      executeWork in class io.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry
    • getWorker

      public io.vertx.mutiny.core.WorkerExecutor getWorker(String workerName)
      Overrides:
      getWorker in class io.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry
    • defineWorker

      public void defineWorker(String className, String method, String poolName, boolean virtualThread)