Bayeux.BayeuxListener, ConfigurableServerChannel.ServerChannelListener, EventListenerpublic static interface ServerChannel.MessageListener extends ConfigurableServerChannel.ServerChannelListener
Listeners objects that implement this interface will be notified of message publish.
ConfigurableServerChannel.ServerChannelListener.Weak| Modifier and Type | Method | Description |
|---|---|---|
boolean |
onMessage(ServerSession from,
ServerChannel channel,
ServerMessage.Mutable message) |
Callback invoked when a message is being published.
|
boolean onMessage(ServerSession from, ServerChannel channel, ServerMessage.Mutable message)
Callback invoked when a message is being published.
Implementers can decide to return false to signal that the message should not be published.
from - the session that publishes the messagechannel - the channel the message is published tomessage - the message to be publishedCopyright © 2008–2017 The CometD Project. All rights reserved.