public class DefaultMediatorConfiguration extends Object implements MediatorConfiguration
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultMediatorConfiguration.AlwaysInvalidIndexGenericTypeAssignable |
protected static class |
DefaultMediatorConfiguration.MethodParamGenericTypeAssignable |
protected static class |
DefaultMediatorConfiguration.ReturnTypeGenericTypeAssignable |
MediatorConfiguration.Consumption, MediatorConfiguration.Production
Constructor and Description |
---|
DefaultMediatorConfiguration(Method method,
javax.enterprise.inject.spi.Bean<?> bean) |
Modifier and Type | Method and 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 the
Invoker 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 |
Merge.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() |
void |
strict() |
boolean |
usesBuilderTypes() |
public DefaultMediatorConfiguration(Method method, javax.enterprise.inject.spi.Bean<?> bean)
public Shape shape()
shape
in interface MediatorConfiguration
public String getOutgoing()
getOutgoing
in interface MediatorConfiguration
public List<String> getIncoming()
getIncoming
in interface MediatorConfiguration
public String methodAsString()
methodAsString
in interface MediatorConfiguration
public Method getMethod()
getMethod
in interface MediatorConfiguration
public Class<?> getReturnType()
getReturnType
in interface MediatorConfiguration
public Type getIngestedPayloadType()
getIngestedPayloadType
in interface MediatorConfiguration
null
if there is no consumption or the type cannot be
extracted.
Conversion is based on this type.public Class<?>[] getParameterTypes()
getParameterTypes
in interface MediatorConfiguration
public MediatorConfiguration.Consumption consumption()
consumption
in interface MediatorConfiguration
public MediatorConfiguration.Production production()
production
in interface MediatorConfiguration
public boolean usesBuilderTypes()
usesBuilderTypes
in interface MediatorConfiguration
public Acknowledgment.Strategy getAcknowledgment()
getAcknowledgment
in interface MediatorConfiguration
public Merge.Mode getMerge()
getMerge
in interface MediatorConfiguration
public boolean getBroadcast()
getBroadcast
in interface MediatorConfiguration
public javax.enterprise.inject.spi.Bean<?> getBean()
getBean
in interface MediatorConfiguration
public int getNumberOfSubscriberBeforeConnecting()
getNumberOfSubscriberBeforeConnecting
in interface MediatorConfiguration
public boolean isBlocking()
isBlocking
in interface MediatorConfiguration
public String getWorkerPoolName()
getWorkerPoolName
in interface MediatorConfiguration
public boolean isBlockingExecutionOrdered()
isBlockingExecutionOrdered
in interface MediatorConfiguration
public Class<? extends Invoker> getInvokerClass()
MediatorConfiguration
Invoker
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 ongetInvokerClass
in interface MediatorConfiguration
public void strict()
Copyright © 2018–2021 SmallRye. All rights reserved.