@FunctionalInterface public interface ReceiveMessageAdvice extends MethodInterceptor
receive()
contract is called.Modifier and Type | Method and Description |
---|---|
Message<?> |
afterReceive(Message<?> result,
Object source)
Subclasses can take actions based on the result of the
Joinpoint.proceed() ; e.g. |
default boolean |
beforeReceive(Object source)
Subclasses can decide whether to
Joinpoint.proceed() or not. |
default Object |
invoke(MethodInvocation invocation) |
default boolean beforeReceive(Object source)
Joinpoint.proceed()
or not.source
- the source of the message to receive.@Nullable default Object invoke(MethodInvocation invocation) throws Throwable
invoke
in interface MethodInterceptor
Throwable
@Nullable Message<?> afterReceive(@Nullable Message<?> result, 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.