Package com.mongodb.event
Class ServerClosedEvent
- java.lang.Object
-
- com.mongodb.event.ServerClosedEvent
-
public final class ServerClosedEvent extends java.lang.ObjectA server opening event.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ServerClosedEvent(ServerId serverId)Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerIdgetServerId()Gets the serverId.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ServerClosedEvent
public ServerClosedEvent(ServerId serverId)
Construct an instance.- Parameters:
serverId- the non-null serverId
-
-
Method Detail
-
getServerId
public ServerId getServerId()
Gets the serverId.- Returns:
- the serverId
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-