Class ServerOpeningEvent

java.lang.Object
com.mongodb.event.ServerOpeningEvent

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

    • ServerOpeningEvent

      public ServerOpeningEvent(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