Package io.smallrye.reactive.messaging
Class DefaultMediatorConfiguration
- java.lang.Object
-
- io.smallrye.reactive.messaging.DefaultMediatorConfiguration
-
- All Implemented Interfaces:
MediatorConfiguration
public class DefaultMediatorConfiguration extends Object implements MediatorConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DefaultMediatorConfiguration.AlwaysInvalidIndexGenericTypeAssignable
protected static class
DefaultMediatorConfiguration.MethodParamGenericTypeAssignable
protected static class
DefaultMediatorConfiguration.ReturnTypeGenericTypeAssignable
-
Nested classes/interfaces inherited from interface io.smallrye.reactive.messaging.MediatorConfiguration
MediatorConfiguration.Consumption, MediatorConfiguration.Production
-
-
Constructor Summary
Constructors Constructor Description DefaultMediatorConfiguration(Method method, javax.enterprise.inject.spi.Bean<?> bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compute(Incomings incomings, Outgoing outgoing, Blocking blocking)
void
compute(List<Incoming> incomings, Outgoing outgoing, Blocking blocking)
MediatorConfiguration.Consumption
consumption()
Acknowledgment.Strategy
getAcknowledgment()
javax.enterprise.inject.spi.Bean<?>
getBean()
boolean
getBroadcast()
List<String>
getIncoming()
Type
getIngestedPayloadType()
Class<? extends Invoker>
getInvokerClass()
Implementation of theInvoker
interface that can be used to invoke the method described by this configuration The invoker class can either have a no-arg constructor in which case it's expected to be look up the bean programmatically, or have a constructor that takes a single Object parameter - the bean to operate onMerge.Mode
getMerge()
Method
getMethod()
int
getNumberOfSubscriberBeforeConnecting()
String
getOutgoing()
Class<?>[]
getParameterTypes()
Class<?>
getReturnType()
String
getWorkerPoolName()
boolean
isBlocking()
boolean
isBlockingExecutionOrdered()
String
methodAsString()
MediatorConfiguration.Production
production()
Shape
shape()
boolean
usesBuilderTypes()
-
-
-
Constructor Detail
-
DefaultMediatorConfiguration
public DefaultMediatorConfiguration(Method method, javax.enterprise.inject.spi.Bean<?> bean)
-
-
Method Detail
-
shape
public Shape shape()
- Specified by:
shape
in interfaceMediatorConfiguration
-
getOutgoing
public String getOutgoing()
- Specified by:
getOutgoing
in interfaceMediatorConfiguration
-
getIncoming
public List<String> getIncoming()
- Specified by:
getIncoming
in interfaceMediatorConfiguration
-
methodAsString
public String methodAsString()
- Specified by:
methodAsString
in interfaceMediatorConfiguration
-
getMethod
public Method getMethod()
- Specified by:
getMethod
in interfaceMediatorConfiguration
-
getReturnType
public Class<?> getReturnType()
- Specified by:
getReturnType
in interfaceMediatorConfiguration
-
getIngestedPayloadType
public Type getIngestedPayloadType()
- Specified by:
getIngestedPayloadType
in interfaceMediatorConfiguration
- Returns:
- the discovered ingested payload type. May be
null
if there is no consumption or the type cannot be extracted. Conversion is based on this type.
-
getParameterTypes
public Class<?>[] getParameterTypes()
- Specified by:
getParameterTypes
in interfaceMediatorConfiguration
-
consumption
public MediatorConfiguration.Consumption consumption()
- Specified by:
consumption
in interfaceMediatorConfiguration
-
production
public MediatorConfiguration.Production production()
- Specified by:
production
in interfaceMediatorConfiguration
-
usesBuilderTypes
public boolean usesBuilderTypes()
- Specified by:
usesBuilderTypes
in interfaceMediatorConfiguration
-
getAcknowledgment
public Acknowledgment.Strategy getAcknowledgment()
- Specified by:
getAcknowledgment
in interfaceMediatorConfiguration
-
getMerge
public Merge.Mode getMerge()
- Specified by:
getMerge
in interfaceMediatorConfiguration
-
getBroadcast
public boolean getBroadcast()
- Specified by:
getBroadcast
in interfaceMediatorConfiguration
-
getBean
public javax.enterprise.inject.spi.Bean<?> getBean()
- Specified by:
getBean
in interfaceMediatorConfiguration
-
getNumberOfSubscriberBeforeConnecting
public int getNumberOfSubscriberBeforeConnecting()
- Specified by:
getNumberOfSubscriberBeforeConnecting
in interfaceMediatorConfiguration
-
isBlocking
public boolean isBlocking()
- Specified by:
isBlocking
in interfaceMediatorConfiguration
-
getWorkerPoolName
public String getWorkerPoolName()
- Specified by:
getWorkerPoolName
in interfaceMediatorConfiguration
-
isBlockingExecutionOrdered
public boolean isBlockingExecutionOrdered()
- Specified by:
isBlockingExecutionOrdered
in interfaceMediatorConfiguration
-
getInvokerClass
public Class<? extends Invoker> getInvokerClass()
Description copied from interface:MediatorConfiguration
Implementation of theInvoker
interface that can be used to invoke the method described by this configuration The invoker class can either have a no-arg constructor in which case it's expected to be look up the bean programmatically, or have a constructor that takes a single Object parameter - the bean to operate on- Specified by:
getInvokerClass
in interfaceMediatorConfiguration
-
-