Package io.smallrye.reactive.messaging
Class AbstractMediator
- java.lang.Object
-
- io.smallrye.reactive.messaging.AbstractMediator
-
- Direct Known Subclasses:
ProcessorMediator
,PublisherMediator
,StreamTransformerMediator
,SubscriberMediator
public abstract class AbstractMediator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected MediatorConfiguration
configuration
protected WorkerPoolRegistry
workerPoolRegistry
-
Constructor Summary
Constructors Constructor Description AbstractMediator(MediatorConfiguration configuration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MediatorConfiguration
configuration()
void
connectToUpstream(org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> publisher)
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()
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
setDecorators(javax.enterprise.inject.Instance<PublisherDecorator> decorators)
void
setInvoker(Invoker invoker)
void
setWorkerPoolRegistry(WorkerPoolRegistry workerPoolRegistry)
-
-
-
Field Detail
-
configuration
protected final MediatorConfiguration configuration
-
workerPoolRegistry
protected WorkerPoolRegistry workerPoolRegistry
-
-
Constructor Detail
-
AbstractMediator
public AbstractMediator(MediatorConfiguration configuration)
-
-
Method Detail
-
setInvoker
public void setInvoker(Invoker invoker)
-
setDecorators
public void setDecorators(javax.enterprise.inject.Instance<PublisherDecorator> decorators)
-
setWorkerPoolRegistry
public void setWorkerPoolRegistry(WorkerPoolRegistry workerPoolRegistry)
-
run
public void run()
-
connectToUpstream
public void connectToUpstream(org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> publisher)
-
configuration
public MediatorConfiguration configuration()
-
initialize
public void initialize(Object bean)
-
invoke
protected <T> T invoke(Object... args)
-
invokeBlocking
protected <T> io.smallrye.mutiny.Uni<T> invokeBlocking(Object... args)
-
getAckOrCompletion
protected CompletionStage<Message<?>> getAckOrCompletion(Message<?> message)
-
getStream
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> getStream()
-
getConfiguration
public MediatorConfiguration getConfiguration()
-
getMethodAsString
public String getMethodAsString()
-
getComputedSubscriber
public org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<Message<?>,Void> getComputedSubscriber()
-
isConnected
public abstract boolean isConnected()
-
managePreProcessingAck
protected Function<Message<?>,? extends CompletionStage<? extends Message<?>>> managePreProcessingAck()
-
-