Class ServerId


  • @Immutable
    @Deprecated(since="2021-05-27")
    public final class ServerId
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    A client-generated identifier that uniquely identifies a MongoDB server.
    Since:
    3.0
    • Constructor Detail

      • ServerId

        public ServerId​(ClusterId clusterId,
                        ServerAddress address)
        Deprecated.
        Construct an instance.
        Parameters:
        clusterId - the client-generated cluster identifier
        address - the server address
    • Method Detail

      • getClusterId

        public ClusterId getClusterId()
        Deprecated.
        Gets the cluster identifier.
        Returns:
        the cluster identifier
      • getAddress

        public ServerAddress getAddress()
        Deprecated.
        Gets the server address.
        Returns:
        the server address
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object