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 boolean
equals(Object o)
String
getDescription()
Gets the user defined description of the MongoClient.String
getValue()
Gets the value of the identifier.int
hashCode()
String
toString()
-
-
-
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
-
-