public class JournalingInterceptor extends java.lang.Object implements MessageInterceptor
| Constructor and Description |
|---|
JournalingInterceptor(java.lang.String channelName,
Journal journal)
Creates a
JournalingInterceptor for a channel, using the given Journal. |
| Modifier and Type | Method and Description |
|---|---|
Journal |
getJournal() |
TextMessage |
intercept(TextMessage message)
Intercept a message and return the same message, a modified version of the incoming message, or null, if
the message should be filtered out and dropped by the
AbstractMessageEndpoint |
public JournalingInterceptor(@Nonnull
java.lang.String channelName,
@Nonnull
Journal journal)
JournalingInterceptor for a channel, using the given Journal.channelName - the name of the journaled channeljournal - the Journal used to record messages for the channeljava.lang.IllegalStateException - if the Journal's MessageStore does not provide an Index.JOURNAL_KEY@Nonnull public TextMessage intercept(@Nonnull TextMessage message)
MessageInterceptorAbstractMessageEndpointintercept in interface MessageInterceptormessage - the channel-layer message with payload-type beeing a Stringpublic Journal getJournal()