public abstract class AbstractMessageSourceAdvice extends Object implements org.aopalliance.intercept.MethodInterceptor
MessageSource.receive()
method to decide whether a poll
should be ignored and/or take action after the receive.Constructor and Description |
---|
AbstractMessageSourceAdvice() |
Modifier and Type | Method and Description |
---|---|
abstract org.springframework.messaging.Message<?> |
afterReceive(org.springframework.messaging.Message<?> result,
MessageSource<?> source)
Subclasses can take actions based on the result of the poll; e.g.
|
abstract boolean |
beforeReceive(MessageSource<?> source)
Subclasses can decide whether to proceed with this poll.
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
public final Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable
public abstract boolean beforeReceive(MessageSource<?> source)
source
- the message source.public abstract org.springframework.messaging.Message<?> afterReceive(org.springframework.messaging.Message<?> result, MessageSource<?> source)
trigger
. The message can also be replaced with a new one.result
- the received message.source
- the message source.