Class Oort.CloudListener
java.lang.Object
org.cometd.oort.Oort.CloudListener
- All Implemented Interfaces:
EventListener, Bayeux.BayeuxListener, ConfigurableServerChannel.ServerChannelListener, ServerChannel.MessageListener
- Enclosing class:
Oort
This listener handles messages sent to /oort/cloud that contains the list of comets
connected to the Oort that just joined the cloud.
For example, if comets A and B are connected, and if comets C and D are connected, when connecting
A and C, a message is sent from A to C on /oort/cloud containing the comets connected
to A (in this case B). When C receives this message, it knows it has to connect to B also.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ConfigurableServerChannel.ServerChannelListener
ConfigurableServerChannel.ServerChannelListener.Weak -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonMessage(ServerSession from, ServerChannel channel, ServerMessage.Mutable message) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ServerChannel.MessageListener
onMessage
-
Constructor Details
-
CloudListener
protected CloudListener()
-
-
Method Details
-
onMessage
Description copied from interface:ServerChannel.MessageListenerBlocking version of
ServerChannel.MessageListener.onMessage(ServerSession, ServerChannel, ServerMessage.Mutable, Promise).- Specified by:
onMessagein interfaceServerChannel.MessageListener- Parameters:
from- the session that publishes the messagechannel- the channel the message is published tomessage- the message to be published- Returns:
- whether the message processing should continue
-