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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    (package private) io.smallrye.reactive.messaging.providers.connectors.ExecutionHolder
     

    Fields inherited from class io.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry

    DEFAULT_SHUTDOWN_CHECK_INTERVAL_MS, DEFAULT_SHUTDOWN_TIMEOUT_MS, SHUTDOWN_CHECK_INTERVAL, SHUTDOWN_TIMEOUT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    defineWorker(String className, String method, String poolName, boolean virtualThread)
     
    <T> io.smallrye.mutiny.Uni<T>
    executeWork(io.vertx.mutiny.core.Context msgContext, io.smallrye.mutiny.Uni<T> uni, String workerName, boolean ordered)
     
    io.vertx.mutiny.core.WorkerExecutor
    getWorker(String workerName)
     
    void
     

    Methods inherited from class io.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry

    analyzeWorker, defineWorker, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 msgContext, 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)