public class CompoundTriggerAdvice extends AbstractMessageSourceAdvice
AbstractMessageSourceAdvicethat uses a
CompoundTriggerto 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.
|Constructor and Description|
|Modifier and Type||Method and Description|
Subclasses can take actions based on the result of the poll; e.g.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Message<?> afterReceive(Message<?> result, MessageSource<?> source)
trigger. The message can also be replaced with a new one.
result- the received message.
source- the message source.