- All Superinterfaces:
EventListener
- All Known Implementing Classes:
OortContainer
,OortList
,OortLongMap
,OortMap
,OortObject
,OortStringMap
- Enclosing class:
Oort
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Comet event object delivered toOort.CometListener
methods. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
Callback method invoked when a new comet joins the clouddefault void
Callback method invoked when a comet leaves the cloud
-
Method Details
-
cometJoined
Callback method invoked when a new comet joins the cloud- Parameters:
event
- the comet event
-
cometLeft
Callback method invoked when a comet leaves the cloud- Parameters:
event
- the comet event
-