Package com.mongodb.event
Class ServerListenerAdapter
- java.lang.Object
-
- com.mongodb.event.ServerListenerAdapter
-
- All Implemented Interfaces:
ServerListener
,EventListener
public abstract class ServerListenerAdapter extends Object implements ServerListener
An adapter for server listener implementations, for clients that want to listen for a subset of server events. Extend this class to listen for server events and override the methods of interest.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description ServerListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete 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
public void serverOpening(ServerOpeningEvent event)
Description copied from interface:ServerListener
Listener for server opening events.- Specified by:
serverOpening
in interfaceServerListener
- Parameters:
event
- the server opening event
-
serverClosed
public void serverClosed(ServerClosedEvent event)
Description copied from interface:ServerListener
Listener for server closed events.- Specified by:
serverClosed
in interfaceServerListener
- Parameters:
event
- the server closed event
-
serverDescriptionChanged
public void serverDescriptionChanged(ServerDescriptionChangedEvent event)
Description copied from interface:ServerListener
Listener for server description changed events.- Specified by:
serverDescriptionChanged
in interfaceServerListener
- Parameters:
event
- the server description changed event
-
-