Package com.mongodb.event
Class ServerListenerAdapter
- java.lang.Object
-
- com.mongodb.event.ServerListenerAdapter
-
- All Implemented Interfaces:
ServerListener,java.util.EventListener
@Deprecated public abstract class ServerListenerAdapter extends java.lang.Object implements ServerListener
Deprecated.Usage of this API is not supported in Cloud Service.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()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidserverClosed(ServerClosedEvent event)Deprecated.Listener for server closed events.voidserverDescriptionChanged(ServerDescriptionChangedEvent event)Deprecated.Listener for server description changed events.voidserverOpening(ServerOpeningEvent event)Deprecated.Listener for server opening events.
-
-
-
Method Detail
-
serverOpening
public void serverOpening(ServerOpeningEvent event)
Deprecated.Description copied from interface:ServerListenerListener for server opening events.- Specified by:
serverOpeningin interfaceServerListener- Parameters:
event- the server opening event
-
serverClosed
public void serverClosed(ServerClosedEvent event)
Deprecated.Description copied from interface:ServerListenerListener for server closed events.- Specified by:
serverClosedin interfaceServerListener- Parameters:
event- the server closed event
-
serverDescriptionChanged
public void serverDescriptionChanged(ServerDescriptionChangedEvent event)
Deprecated.Description copied from interface:ServerListenerListener for server description changed events.- Specified by:
serverDescriptionChangedin interfaceServerListener- Parameters:
event- the server description changed event
-
-