public abstract class AbstractMediator extends Object
Modifier and Type | Field and Description |
---|---|
protected MediatorConfiguration |
configuration |
protected HealthCenter |
health |
protected WorkerPoolRegistry |
workerPoolRegistry |
Constructor and Description |
---|
AbstractMediator(MediatorConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
MediatorConfiguration |
configuration() |
void |
connectToUpstream(org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> publisher) |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> |
convert(org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> upstream) |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> |
decorate(org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> input) |
protected CompletionStage<Message<?>> |
getAckOrCompletion(Message<?> message) |
org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<Message<?>,Void> |
getComputedSubscriber() |
MediatorConfiguration |
getConfiguration() |
String |
getMethodAsString() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> |
getStream() |
protected CompletionStage<Message<?>> |
handlePreProcessingAck(Message<?> message) |
void |
initialize(Object bean) |
protected <T> T |
invoke(Object... args) |
protected <T> io.smallrye.mutiny.Uni<T> |
invokeBlocking(Object... args) |
abstract boolean |
isConnected() |
protected Function<Message<?>,? extends CompletionStage<? extends Message<?>>> |
managePreProcessingAck() |
void |
run() |
void |
setConverters(javax.enterprise.inject.Instance<MessageConverter> converters) |
void |
setDecorators(javax.enterprise.inject.Instance<PublisherDecorator> decorators) |
void |
setHealth(HealthCenter health) |
void |
setInvoker(Invoker invoker) |
void |
setWorkerPoolRegistry(WorkerPoolRegistry workerPoolRegistry) |
protected final MediatorConfiguration configuration
protected WorkerPoolRegistry workerPoolRegistry
protected HealthCenter health
public AbstractMediator(MediatorConfiguration configuration)
public void setInvoker(Invoker invoker)
public void setDecorators(javax.enterprise.inject.Instance<PublisherDecorator> decorators)
public void setConverters(javax.enterprise.inject.Instance<MessageConverter> converters)
public void setWorkerPoolRegistry(WorkerPoolRegistry workerPoolRegistry)
public void run()
public void connectToUpstream(org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> publisher)
public MediatorConfiguration configuration()
public void initialize(Object bean)
protected <T> T invoke(Object... args)
protected <T> io.smallrye.mutiny.Uni<T> invokeBlocking(Object... args)
protected CompletionStage<Message<?>> getAckOrCompletion(Message<?> message)
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> getStream()
public MediatorConfiguration getConfiguration()
public String getMethodAsString()
public org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<Message<?>,Void> getComputedSubscriber()
public abstract boolean isConnected()
protected Function<Message<?>,? extends CompletionStage<? extends Message<?>>> managePreProcessingAck()
protected CompletionStage<Message<?>> handlePreProcessingAck(Message<?> message)
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> decorate(org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> input)
public void setHealth(HealthCenter health)
Copyright © 2018–2021 SmallRye. All rights reserved.