Class ServerClosedEvent

java.lang.Object
com.mongodb.event.ServerClosedEvent

public final class ServerClosedEvent extends Object
A server opening event.
Since:
3.3
  • Constructor Details

    • ServerClosedEvent

      public ServerClosedEvent(ServerId serverId)
      Construct an instance.
      Parameters:
      serverId - the non-null serverId
  • Method Details

    • getServerId

      public ServerId getServerId()
      Gets the serverId.
      Returns:
      the serverId
    • toString

      public String toString()
      Overrides:
      toString in class Object