Class 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.
    • Constructor Detail

      • ClusterId

        public ClusterId()
        Construct an instance.
      • ClusterId

        public ClusterId​( description)
        Construct an instance.
        Parameters:
        description - the user defined description of the MongoClient
    • 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