public class AggregatorSpec extends CorrelationHandlerSpec<AggregatorSpec,AggregatingMessageHandler>
adviceChain
componentsToRegister, endpointFactoryBean, handler
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
AggregatorSpec() |
Modifier and Type | Method and Description |
---|---|
AggregatorSpec |
expireGroupsUponCompletion(boolean expireGroupsUponCompletion) |
Map<Object,String> |
getComponentsToRegister() |
AggregatorSpec |
headersFunction(java.util.function.Function<MessageGroup,Map<String,Object>> headersFunction)
Configure a
Function to merge and compute headers for reply
based on the completed MessageGroup . |
AggregatorSpec |
outputExpression(String expression)
An expression to determine the output message from the released group.
|
AggregatorSpec |
outputProcessor(MessageGroupProcessor outputProcessor)
A processor to determine the output message from the released group.
|
AggregatorSpec |
processor(Object target)
Configure the handler with
MethodInvokingCorrelationStrategy
and MethodInvokingReleaseStrategy using the target
object which should have methods annotated appropriately for each function. |
AggregatorSpec |
processor(Object target,
String methodName)
Configure the handler with
MethodInvokingCorrelationStrategy
and MethodInvokingReleaseStrategy using the target
object which should have methods annotated appropriately for each function. |
correlationExpression, correlationStrategy, correlationStrategy, discardChannel, discardChannel, expireGroupsUponTimeout, forceReleaseAdvice, groupTimeout, groupTimeout, groupTimeoutExpression, lockRegistry, messageStore, minimumTimeoutForEmptyGroups, popSequence, releaseExpression, releaseStrategy, releaseStrategy, sendPartialResultOnExpiry, setExpireDuration, setExpireTimeout, taskScheduler
advice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, requiresReply, role, sendTimeout, transactional, transactional, transactional, transactional, transactional
assertHandler, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, poller
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public AggregatorSpec processor(Object target)
MethodInvokingCorrelationStrategy
and MethodInvokingReleaseStrategy
using the target
object which should have methods annotated appropriately for each function.
Also set the output processor.processor
in class CorrelationHandlerSpec<AggregatorSpec,AggregatingMessageHandler>
target
- the target object.AbstractCorrelatingMessageHandler.setCorrelationStrategy(CorrelationStrategy)
,
AbstractCorrelatingMessageHandler.setReleaseStrategy(ReleaseStrategy)
public AggregatorSpec processor(Object target, String methodName)
MethodInvokingCorrelationStrategy
and MethodInvokingReleaseStrategy
using the target
object which should have methods annotated appropriately for each function.
Also set the output processor.target
- the target object.methodName
- The method name for the output processor (or 'null' in which case, the
target object must have an Aggregator
annotation).public AggregatorSpec outputExpression(String expression)
expression
- the expression.public AggregatorSpec outputProcessor(MessageGroupProcessor outputProcessor)
outputProcessor
- the processor.public AggregatorSpec expireGroupsUponCompletion(boolean expireGroupsUponCompletion)
expireGroupsUponCompletion
- the expireGroupsUponCompletion.AggregatingMessageHandler.setExpireGroupsUponCompletion(boolean)
public AggregatorSpec headersFunction(java.util.function.Function<MessageGroup,Map<String,Object>> headersFunction)
Function
to merge and compute headers for reply
based on the completed MessageGroup
.headersFunction
- the Function
to merge and compute headers for reply
based on the completed MessageGroup
.public Map<Object,String> getComponentsToRegister()
getComponentsToRegister
in interface ComponentsRegistration
getComponentsToRegister
in class EndpointSpec<AggregatorSpec,ConsumerEndpointFactoryBean,AggregatingMessageHandler>