Package com.mongodb.connection
Class ClusterId
-
- com.mongodb.connection.ClusterId
-
public final class ClusterId extends
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 Constructor Description ClusterId()
Construct an instance.description)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
o)
getDescription()
Gets the user defined description of the MongoClient.getValue()
Gets the value of the identifier.int
hashCode()
toString()
-
-
-
Method Detail
-
getValue
public getValue()
Gets the value of the identifier.- Returns:
- the value
-
getDescription
public getDescription()
Gets the user defined description of the MongoClient.- Returns:
- the user defined description of the MongoClient
-
equals
public boolean equals( o)
- Overrides:
in class
-
hashCode
public int hashCode()
- Overrides:
in class
-
toString
public toString()
- Overrides:
in class
-
-