@FunctionalInterface
public interface ReceiveMessageAdvice
extends org.aopalliance.intercept.MethodInterceptor
receive() contract is called.| Modifier and Type | Method and Description |
|---|---|
org.springframework.messaging.Message<?> |
afterReceive(org.springframework.messaging.Message<?> result,
java.lang.Object source)
Subclasses can take actions based on the result of the
Joinpoint.proceed(); e.g. |
default boolean |
beforeReceive(java.lang.Object source)
Subclasses can decide whether to
Joinpoint.proceed() or not. |
default java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
default boolean beforeReceive(java.lang.Object source)
Joinpoint.proceed() or not.source - the source of the message to receive.@Nullable
default java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorjava.lang.Throwable@Nullable
org.springframework.messaging.Message<?> afterReceive(@Nullable
org.springframework.messaging.Message<?> result,
java.lang.Object source)
Joinpoint.proceed(); e.g.
adjust the trigger. The message can also be replaced with a new one.result - the received message.source - the source of the message to receive.Joinpoint.proceed() returned.