java.util.EventListener
Oort.CometListener.Adapter
, OortContainer
, OortList
, OortLongMap
, OortMap
, OortObject
, OortStringMap
public static interface Oort.CometListener
extends java.util.EventListener
Listener interface that gets notified of comet events, that is when a new comet joins the cloud or when a comet leaves the cloud.
If oortA and oortB form a cloud, when oortC joins to the cloud, both oortA and oortB receive one event of type "comet joined", signaling that oortC joined the cloud.
If, later, oortB leaves the cloud, then both oortA and oortC receive one event of type "comet left" signaling that oortB left the cloud.
Modifier and Type | Interface | Description |
---|---|---|
static class |
Oort.CometListener.Adapter |
Empty implementation of
Oort.CometListener |
static class |
Oort.CometListener.Event |
Comet event object delivered to
Oort.CometListener methods. |
Modifier and Type | Method | Description |
---|---|---|
void |
cometJoined(Oort.CometListener.Event event) |
Callback method invoked when a new comet joins the cloud
|
void |
cometLeft(Oort.CometListener.Event event) |
Callback method invoked when a comet leaves the cloud
|
void cometJoined(Oort.CometListener.Event event)
event
- the comet eventvoid cometLeft(Oort.CometListener.Event event)
event
- the comet eventCopyright © 2008–2017 The CometD Project. All rights reserved.