Package com.mongodb.event
Class ClusterOpeningEvent
- java.lang.Object
-
- com.mongodb.event.ClusterOpeningEvent
-
public final class ClusterOpeningEvent extends java.lang.ObjectA cluster opening event.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ClusterOpeningEvent(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.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ClusterOpeningEvent
public ClusterOpeningEvent(ClusterId clusterId)
Constructs a new instance of the event.- Parameters:
clusterId- the cluster id
-
-
Method Detail
-
getClusterId
public ClusterId getClusterId()
Gets the cluster id.- Returns:
- the cluster id
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-