Package com.mongodb.event
Interface ClusterListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ClusterEventMulticaster
,ClusterListenerAdapter
public interface ClusterListener extends EventListener
A listener for cluster-related events.- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clusterClosed(ClusterClosedEvent event)
Invoked when a cluster is closed.void
clusterDescriptionChanged(ClusterDescriptionChangedEvent event)
Invoked when a cluster description changes.void
clusterOpening(ClusterOpeningEvent event)
Invoked when a cluster is opened.
-
-
-
Method Detail
-
clusterOpening
void clusterOpening(ClusterOpeningEvent event)
Invoked when a cluster is opened.- Parameters:
event
- the event
-
clusterClosed
void clusterClosed(ClusterClosedEvent event)
Invoked when a cluster is closed.- Parameters:
event
- the event
-
clusterDescriptionChanged
void clusterDescriptionChanged(ClusterDescriptionChangedEvent event)
Invoked when a cluster description changes.- Parameters:
event
- the event
-
-