Package com.mongodb.event
Interface ServerListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ServerListenerAdapter
A listener for server-related events
It does not have to be thread-safe, see ClusterListener
for the details regarding the order of events.
- 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
-