Package com.mongodb.event
Class ClusterClosedEvent
- java.lang.Object
 - 
- com.mongodb.event.ClusterClosedEvent
 
 
- 
public final class ClusterClosedEvent extends java.lang.ObjectA cluster closed event.- Since:
 - 3.3
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ClusterClosedEvent(ClusterId clusterId)Constructs a new instance of the event. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterIdgetClusterId()Gets the cluster id associated with this event.java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
ClusterClosedEvent
public ClusterClosedEvent(ClusterId clusterId)
Constructs a new instance of the event.- Parameters:
 clusterId- the cluster id
 
 - 
 
- 
Method Detail
- 
getClusterId
public ClusterId getClusterId()
Gets the cluster id associated with this event.- Returns:
 - the cluster id
 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -