Class CompoundTriggerAdvice
java.lang.Object
org.springframework.integration.aop.CompoundTriggerAdvice
- All Implemented Interfaces:
- Advice,- Interceptor,- MethodInterceptor,- MessageSourceMutator,- ReceiveMessageAdvice
public class CompoundTriggerAdvice
extends Object
implements MessageSourceMutator, ReceiveMessageAdvice
A 
MessageSourceMutator that uses a CompoundTrigger to adjust
 the poller - when a message is present, the compound trigger's primary trigger is
 used to determine the next poll. When no message is present, the override trigger is
 used.
 
 The poller advised by this class must be configured to use the same
 CompoundTrigger instance and must not use a task executor.
- Since:
- 4.3
- Author:
- Gary Russell, Artem Bilan
- 
Constructor SummaryConstructorsConstructorDescriptionCompoundTriggerAdvice(CompoundTrigger compoundTrigger, Trigger overrideTrigger) 
- 
Method SummaryModifier and TypeMethodDescriptionMessage<?> afterReceive(Message<?> result, MessageSource<?> source) Subclasses can take actions based on the result of the poll; e.g.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.aop.MessageSourceMutatorafterReceive, beforeReceive, beforeReceiveMethods inherited from interface org.springframework.integration.aop.ReceiveMessageAdviceinvoke
- 
Constructor Details- 
CompoundTriggerAdvice
 
- 
- 
Method Details- 
afterReceiveDescription copied from interface:MessageSourceMutatorSubclasses can take actions based on the result of the poll; e.g. adjust thetrigger. The message can also be replaced with a new one.- Specified by:
- afterReceivein interface- MessageSourceMutator
- Parameters:
- result- the received message.
- source- the message source.
- Returns:
- the message or null
 
 
-