Package com.mongodb.event
Class ServerListenerAdapter
java.lang.Object
com.mongodb.event.ServerListenerAdapter
- All Implemented Interfaces:
ServerListener,EventListener
@Deprecated(since="2021-05-27")
public abstract class ServerListenerAdapter
extends 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidserverClosed(ServerClosedEvent event) Deprecated.Listener for server closed events.voidDeprecated.Listener for server description changed events.voidserverOpening(ServerOpeningEvent event) Deprecated.Listener for server opening events.
-
Constructor Details
-
ServerListenerAdapter
public ServerListenerAdapter()Deprecated.
-
-
Method Details
-
serverOpening
Deprecated.Description copied from interface:ServerListenerListener for server opening events.- Specified by:
serverOpeningin interfaceServerListener- Parameters:
event- the server opening event
-
serverClosed
Deprecated.Description copied from interface:ServerListenerListener for server closed events.- Specified by:
serverClosedin interfaceServerListener- Parameters:
event- the server closed event
-
serverDescriptionChanged
Deprecated.Description copied from interface:ServerListenerListener for server description changed events.- Specified by:
serverDescriptionChangedin interfaceServerListener- Parameters:
event- the server description changed event
-