Package com.mongodb.connection
Class TopologyVersion
java.lang.Object
com.mongodb.connection.TopologyVersion
The topology version of a cluster.
- Since:
 - 4.1
 - Since server release
 - 4.4
 
- 
Constructor Summary
ConstructorsConstructorDescriptionTopologyVersion(BsonDocument topologyVersionDocument) Construct a new instance from a document descriptionTopologyVersion(ObjectId processId, long counter) Construct a new instance from process identifier and counter - 
Method Summary
 
- 
Constructor Details
- 
TopologyVersion
Construct a new instance from a document description- Parameters:
 topologyVersionDocument- a document description of the topology version
 - 
TopologyVersion
Construct a new instance from process identifier and counter- Parameters:
 processId- the process identifercounter- the counter
 
 - 
 - 
Method Details
- 
getProcessId
Get the process identifier- Returns:
 - the process identifier
 
 - 
getCounter
public long getCounter()Get the counter- Returns:
 - the counter
 
 - 
asDocument
Get the document representation of the topology version- Returns:
 - the document representation of the topology version
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -