Package com.mongodb.event
Class ServerDescriptionChangedEvent
- java.lang.Object
 - 
- com.mongodb.event.ServerDescriptionChangedEvent
 
 
- 
public final class ServerDescriptionChangedEvent extends Object
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)Construct an instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerDescriptiongetNewDescription()Gets the new server description.ServerDescriptiongetPreviousDescription()Gets the previous server description.ServerIdgetServerId()Gets the serverId.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
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 Detail
- 
getServerId
public ServerId getServerId()
Gets the serverId.- Returns:
 - the serverId
 
 
- 
getNewDescription
public ServerDescription getNewDescription()
Gets the new server description.- Returns:
 - the new server description
 
 
- 
getPreviousDescription
public ServerDescription getPreviousDescription()
Gets the previous server description.- Returns:
 - the previous server description
 
 
 - 
 
 -