Package com.mongodb.connection
Class ClusterId
- java.lang.Object
 - 
- com.mongodb.connection.ClusterId
 
 
- 
public final class ClusterId extends Object
A client-generated identifier that uniquely identifies a connection to a MongoDB cluster, which could be sharded, replica set, or standalone.- Since:
 - 3.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDescription()Gets the user defined description of the MongoClient.StringgetValue()Gets the value of the identifier.inthashCode()StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
ClusterId
public ClusterId()
Construct an instance. 
- 
ClusterId
public ClusterId(String description)
Construct an instance.- Parameters:
 description- the user defined description of the MongoClient
 
 - 
 
 -