Package com.mongodb.event
Class ServerListenerAdapter
- java.lang.Object
-
- com.mongodb.event.ServerListenerAdapter
-
- All Implemented Interfaces:
ServerListener
,java.util.EventListener
@Deprecated(since="2021-05-27") public abstract class ServerListenerAdapter extends java.lang.Object implements ServerListener
Deprecated.Usage of this API is not supported in AEM as a 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 void
serverClosed(ServerClosedEvent event)
Deprecated.Listener for server closed events.void
serverDescriptionChanged(ServerDescriptionChangedEvent event)
Deprecated.Listener for server description changed events.void
serverOpening(ServerOpeningEvent event)
Deprecated.Listener for server opening events.
-
-
-
Method Detail
-
serverOpening
public void serverOpening(ServerOpeningEvent event)
Deprecated.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)
Deprecated.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)
Deprecated.Description copied from interface:ServerListener
Listener for server description changed events.- Specified by:
serverDescriptionChanged
in interfaceServerListener
- Parameters:
event
- the server description changed event
-
-