Package org.cometd.bayeux.server
Interface ServerChannel.MessageListener
- All Superinterfaces:
Bayeux.BayeuxListener
,ConfigurableServerChannel.ServerChannelListener
,EventListener
- All Known Implementing Classes:
DataFilterMessageListener
,Oort.CloudListener
,OortMasterLong
,OortMasterService
,OortService
- Enclosing interface:
- ServerChannel
public static interface ServerChannel.MessageListener extends ConfigurableServerChannel.ServerChannelListener
Listeners objects that implement this interface will be notified of message publish.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener
ConfigurableServerChannel.ServerChannelListener.Weak
-
Method Summary
Modifier and Type Method Description boolean
onMessage(ServerSession from, ServerChannel channel, ServerMessage.Mutable message)
Callback invoked when a message is being published.
-
Method Details
-
onMessage
Callback invoked when a message is being published.
Implementers can decide to return false to signal that the message should not be published.
- Parameters:
from
- the session that publishes the messagechannel
- the channel the message is published tomessage
- the message to be published- Returns:
- whether the message should be published or not
-