Package com.mongodb.event
Interface ServerListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ServerListenerAdapter
public interface ServerListener extends EventListener
A listener for server-related events- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
serverClosed(ServerClosedEvent event)
Listener for server closed events.default void
serverDescriptionChanged(ServerDescriptionChangedEvent event)
Listener for server description changed events.default void
serverOpening(ServerOpeningEvent event)
Listener for server opening events.
-
-
-
Method Detail
-
serverOpening
default void serverOpening(ServerOpeningEvent event)
Listener for server opening events.- Parameters:
event
- the server opening event
-
serverClosed
default void serverClosed(ServerClosedEvent event)
Listener for server closed events.- Parameters:
event
- the server closed event
-
serverDescriptionChanged
default void serverDescriptionChanged(ServerDescriptionChangedEvent event)
Listener for server description changed events.- Parameters:
event
- the server description changed event
-
-