Package com.mongodb.connection
Class ClusterId
java.lang.Object
com.mongodb.connection.ClusterId
A client-generated identifier that uniquely identifies a connection to a MongoDB cluster, which could be sharded, replica set,
 or standalone.
- Since:
 - 3.0
 
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
ClusterId
public ClusterId()Construct an instance. - 
ClusterId
Construct an instance.- Parameters:
 description- the user defined description of the MongoClient
 
 - 
 - 
Method Details
- 
getValue
Gets the value of the identifier.- Returns:
 - the value
 
 - 
getDescription
Gets the user defined description of the MongoClient.- Returns:
 - the user defined description of the MongoClient
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -