Package com.mongodb.event
Interface ServerListener
- All Superinterfaces:
EventListener
A listener for server-related events
See ClusterListener
for the details regarding the order of events and memory synchronization.
- Since:
- 3.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
serverClosed
(ServerClosedEvent event) Listener for server closed events.default void
Listener for server description changed events.default void
serverOpening
(ServerOpeningEvent event) Listener for server opening events.
-
Method Details
-
serverOpening
Listener for server opening events.- Parameters:
event
- the server opening event
-
serverClosed
Listener for server closed events.- Parameters:
event
- the server closed event
-
serverDescriptionChanged
Listener for server description changed events.- Parameters:
event
- the server description changed event
-