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
FieldsModifier and TypeFieldDescriptionstatic final String(package private) io.smallrye.reactive.messaging.providers.connectors.ExecutionHolder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddefineWorker(String className, String method, String poolName, boolean virtualThread) <T> io.smallrye.mutiny.Uni<T>executeWork(io.vertx.mutiny.core.Context currentContext, io.smallrye.mutiny.Uni<T> uni, String workerName, boolean ordered) io.vertx.mutiny.core.WorkerExecutorvoidMethods inherited from class io.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry
analyzeWorker, defineWorker, init
-
Field Details
-
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:
terminatein classio.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:
executeWorkin classio.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry
-
getWorker
- Overrides:
getWorkerin classio.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry
-
defineWorker
-