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