Package com.mongodb.connection
Class ServerId
- java.lang.Object
-
- com.mongodb.connection.ServerId
-
@Immutable @Deprecated(since="2021-05-27") public final class ServerId extends 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 Summary
Constructors Constructor Description ServerId(ClusterId clusterId, ServerAddress address)
Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
Deprecated.ServerAddress
getAddress()
Deprecated.Gets the server address.ClusterId
getClusterId()
Deprecated.Gets the cluster identifier.int
hashCode()
Deprecated.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
ServerId
public ServerId(ClusterId clusterId, ServerAddress address)
Deprecated.Construct an instance.- Parameters:
clusterId
- the client-generated cluster identifieraddress
- 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
-
-