Class ClusterClosedEvent

java.lang.Object
com.mongodb.event.ClusterClosedEvent

public final class ClusterClosedEvent extends Object
A cluster closed event.
Since:
3.3
  • Constructor Details

    • ClusterClosedEvent

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

    • getClusterId

      public ClusterId getClusterId()
      Gets the cluster id associated with this event.
      Returns:
      the cluster id
    • toString

      public String toString()
      Overrides:
      toString in class Object