Package com.mongodb.event
Class ServerDescriptionChangedEvent
- java.lang.Object
-
- com.mongodb.event.ServerDescriptionChangedEvent
-
@Deprecated(since="2021-05-27") public final class ServerDescriptionChangedEvent extends java.lang.ObjectDeprecated.Usage of this API is not supported in AEM as a Cloud Service.An event for changes to the description of a server.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ServerDescriptionChangedEvent(ServerId serverId, ServerDescription newDescription, ServerDescription previousDescription)Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServerDescriptiongetNewDescription()Deprecated.Gets the new server description.ServerDescriptiongetPreviousDescription()Deprecated.Gets the previous server description.ServerIdgetServerId()Deprecated.Gets the serverId.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
ServerDescriptionChangedEvent
public ServerDescriptionChangedEvent(ServerId serverId, ServerDescription newDescription, ServerDescription previousDescription)
Deprecated.Construct an instance.- Parameters:
serverId- the non-null serverIdnewDescription- the non-null new descriptionpreviousDescription- the non-null previous description
-
-
Method Detail
-
getServerId
public ServerId getServerId()
Deprecated.Gets the serverId.- Returns:
- the serverId
-
getNewDescription
public ServerDescription getNewDescription()
Deprecated.Gets the new server description.- Returns:
- the new server description
-
getPreviousDescription
public ServerDescription getPreviousDescription()
Deprecated.Gets the previous server description.- Returns:
- the previous server description
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-