public abstract class ChannelInterceptorAdapter extends Object implements ChannelInterceptor
ChannelInterceptor
base class with empty method implementations
as a convenience.Constructor and Description |
---|
ChannelInterceptorAdapter() |
Modifier and Type | Method and Description |
---|---|
Message<?> |
postReceive(Message<?> message,
MessageChannel channel)
Invoked immediately after a Message has been retrieved but before
it is returned to the caller.
|
void |
postSend(Message<?> message,
MessageChannel channel,
boolean sent)
Invoked immediately after the send invocation.
|
boolean |
preReceive(MessageChannel channel)
Invoked as soon as receive is called and before a Message is
actually retrieved.
|
Message<?> |
preSend(Message<?> message,
MessageChannel channel)
Invoked before the Message is actually sent to the channel.
|
public Message<?> preSend(Message<?> message, MessageChannel channel)
ChannelInterceptor
null
, then the actual
send invocation will not occur.preSend
in interface ChannelInterceptor
public void postSend(Message<?> message, MessageChannel channel, boolean sent)
ChannelInterceptor
postSend
in interface ChannelInterceptor
public boolean preReceive(MessageChannel channel)
ChannelInterceptor
preReceive
in interface ChannelInterceptor
public Message<?> postReceive(Message<?> message, MessageChannel channel)
ChannelInterceptor
postReceive
in interface ChannelInterceptor