Class SimpleActiveIdleMessageSourceAdvice
java.lang.Object
org.springframework.integration.aop.AbstractMessageSourceAdvice
org.springframework.integration.aop.SimpleActiveIdleMessageSourceAdvice
- All Implemented Interfaces:
Advice
,Interceptor
,MethodInterceptor
,MessageSourceMutator
,ReceiveMessageAdvice
@Deprecated public class SimpleActiveIdleMessageSourceAdvice extends AbstractMessageSourceAdvice
Deprecated.
since 5.3 in favor of
SimpleActiveIdleReceiveMessageAdvice
with the same
(but more common) functionality.A simple advice that polls at one rate when messages exist and another when
there are no messages.
- Since:
- 4.2
- Author:
- Gary Russell
- See Also:
DynamicPeriodicTrigger
-
Constructor Summary
Constructors Constructor Description SimpleActiveIdleMessageSourceAdvice(DynamicPeriodicTrigger trigger)
Deprecated. -
Method Summary
Modifier and Type Method Description Message<?>
afterReceive(Message<?> result, MessageSource<?> source)
Deprecated.Subclasses can take actions based on the result of the poll; e.g.void
setActivePollPeriod(long activePollPeriod)
Deprecated.Set the poll period when messages are returned.void
setIdlePollPeriod(long idlePollPeriod)
Deprecated.Set the poll period when messages are not returned.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.aop.MessageSourceMutator
afterReceive, beforeReceive, beforeReceive
-
Constructor Details
-
SimpleActiveIdleMessageSourceAdvice
Deprecated.
-
-
Method Details
-
setIdlePollPeriod
public void setIdlePollPeriod(long idlePollPeriod)Deprecated.Set the poll period when messages are not returned. Defaults to the trigger's period.- Parameters:
idlePollPeriod
- the period in milliseconds.
-
setActivePollPeriod
public void setActivePollPeriod(long activePollPeriod)Deprecated.Set the poll period when messages are returned. Defaults to the trigger's period.- Parameters:
activePollPeriod
- the period in milliseconds.
-
afterReceive
Deprecated.Description copied from interface:MessageSourceMutator
Subclasses can take actions based on the result of the poll; e.g. adjust thetrigger
. The message can also be replaced with a new one.- Parameters:
result
- the received message.source
- the message source.- Returns:
- a message to continue to process the result, null to discard whatever the poll returned.
-