| Package | Description |
|---|---|
| me.lucko.helper.messaging |
| Modifier and Type | Method and Description |
|---|---|
ChannelAgent<T> |
Channel.newAgent()
Creates a new
ChannelAgent for this channel. |
default ChannelAgent<T> |
Channel.newAgent(ChannelListener<T> listener)
Creates a new
ChannelAgent for this channel, and immediately
adds the given ChannelListener to it. |
| Modifier and Type | Method and Description |
|---|---|
void |
ChannelListener.onMessage(ChannelAgent<T> agent,
T message)
Called when a message is posted to this listener.
|
Copyright © 2022. All rights reserved.