Class ClusterOpeningEvent

java.lang.Object
com.mongodb.event.ClusterOpeningEvent

public final class ClusterOpeningEvent extends Object
A cluster opening event.
Since:
3.3
  • Constructor Details

    • ClusterOpeningEvent

      public ClusterOpeningEvent(ClusterId clusterId)
      Constructs a new instance of the event.
      Parameters:
      clusterId - the cluster id
  • Method Details

    • getClusterId

      public ClusterId getClusterId()
      Gets the cluster id.
      Returns:
      the cluster id
    • toString

      public String toString()
      Overrides:
      toString in class Object