Package com.mongodb.event
Class ServerOpeningEvent
- java.lang.Object
 - 
- com.mongodb.event.ServerOpeningEvent
 
 
- 
public final class ServerOpeningEvent extends java.lang.ObjectA server opening event.- Since:
 - 3.3
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ServerOpeningEvent(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
- 
ServerOpeningEvent
public ServerOpeningEvent(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
 
 - 
 
 -