public abstract class AbstractMessageSourceAdvice
extends java.lang.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.
|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
public final java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorjava.lang.Throwablepublic 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.