protected class Oort.CloudListener extends Object implements ServerChannel.MessageListener
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.
ConfigurableServerChannel.ServerChannelListener.Weak
Modifier | Constructor and Description |
---|---|
protected |
CloudListener() |
Modifier and Type | Method and Description |
---|---|
boolean |
onMessage(ServerSession from,
ServerChannel channel,
ServerMessage.Mutable message)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onMessage
public boolean onMessage(ServerSession from, ServerChannel channel, ServerMessage.Mutable message)
ServerChannel.MessageListener
Blocking version of ServerChannel.MessageListener.onMessage(ServerSession, ServerChannel, ServerMessage.Mutable, Promise)
.
onMessage
in interface ServerChannel.MessageListener
from
- the session that publishes the messagechannel
- the channel the message is published tomessage
- the message to be publishedCopyright © 2008–2024 The CometD Project. All rights reserved.