@ApplicationScoped public class WorkerPoolRegistry extends Object
Constructor and Description |
---|
WorkerPoolRegistry() |
Modifier and Type | Method and Description |
---|---|
<T> void |
analyzeWorker(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType) |
void |
defineWorker(String className,
String method,
String poolName) |
<T> io.smallrye.mutiny.Uni<T> |
executeWork(io.smallrye.mutiny.Uni<T> uni,
String workerName,
boolean ordered) |
void |
init() |
void |
terminate(Object event) |
public void terminate(@Observes(notifyObserver=IF_EXISTS) @Priority(value=100) @BeforeDestroyed(value=javax.enterprise.context.ApplicationScoped.class) Object event)
@PostConstruct public void init()
public <T> io.smallrye.mutiny.Uni<T> executeWork(io.smallrye.mutiny.Uni<T> uni, String workerName, boolean ordered)
public <T> void analyzeWorker(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
Copyright © 2018–2021 SmallRye. All rights reserved.