Package com.mongodb.event
Class ServerDescriptionChangedEvent
java.lang.Object
com.mongodb.event.ServerDescriptionChangedEvent
An event for changes to the description of a server.
- Since:
- 3.3
-
Constructor Summary
ConstructorDescriptionServerDescriptionChangedEvent
(ServerId serverId, ServerDescription newDescription, ServerDescription previousDescription) Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the new server description.Gets the previous server description.Gets the serverId.toString()
-
Constructor Details
-
ServerDescriptionChangedEvent
public ServerDescriptionChangedEvent(ServerId serverId, ServerDescription newDescription, ServerDescription previousDescription) Construct an instance.- Parameters:
serverId
- the non-null serverIdnewDescription
- the non-null new descriptionpreviousDescription
- the non-null previous description
-
-
Method Details