T - the channel message type@FunctionalInterface public interface ChannelListener<T>
| Modifier and Type | Method and Description |
|---|---|
void |
onMessage(ChannelAgent<T> agent,
T message)
Called when a message is posted to this listener.
|
void onMessage(@Nonnull ChannelAgent<T> agent, @Nonnull T message)
This method is called asynchronously.
agent - the agent which forwarded the message.message - the messageCopyright © 2020. All rights reserved.