public interface MessageSource
Modifier and Type | Field and Description |
---|---|
static Object |
NOTIFY_TOKEN
The notify token which can be sent using the
ChannelHandlerContext.write(Object) methods to notify the
MessageChannel that
the source has new content. |
Modifier and Type | Method and Description |
---|---|
Object |
poll()
Poll the next message from the message source
|
static final Object NOTIFY_TOKEN
ChannelHandlerContext.write(Object)
methods to notify the
MessageChannel
that
the source has new content.
Note: This does not mean that the MessageChannel will immediately pick that content up.
Object poll()
null
if there currently
is no message