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