Package org.cometd.oort
Interface Oort.CometListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
Oort.CometListener.Adapter,OortContainer,OortList,OortLongMap,OortMap,OortObject,OortStringMap
- Enclosing class:
- Oort
public static interface Oort.CometListener extends java.util.EventListenerListener 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOort.CometListener.AdapterEmpty implementation ofOort.CometListenerstatic classOort.CometListener.EventComet event object delivered toOort.CometListenermethods.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcometJoined(Oort.CometListener.Event event)Callback method invoked when a new comet joins the cloudvoidcometLeft(Oort.CometListener.Event event)Callback method invoked when a comet leaves the cloud
-
-
-
Method Detail
-
cometJoined
void cometJoined(Oort.CometListener.Event event)
Callback method invoked when a new comet joins the cloud- Parameters:
event- the comet event
-
cometLeft
void cometLeft(Oort.CometListener.Event event)
Callback method invoked when a comet leaves the cloud- Parameters:
event- the comet event
-
-