Package com.mongodb
Class UnixServerAddress
java.lang.Object
com.mongodb.ServerAddress
com.mongodb.UnixServerAddress
- All Implemented Interfaces:
Serializable
@Immutable
@Deprecated(since="2021-05-27")
public final class UnixServerAddress
extends ServerAddress
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Represents the location of a MongoD unix domain socket.
Requires the 'jnr.unixsocket' library.
- Since:
- 3.7
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the underlying socket addressDeprecated.toString()
Deprecated.Methods inherited from class com.mongodb.ServerAddress
defaultHost, defaultPort, equals, getHost, getPort, getSocketAddresses, hashCode, sameHost
-
Constructor Details
-
UnixServerAddress
Deprecated.Creates a new instance- Parameters:
path
- the path of the MongoD unix domain socket.
-
-
Method Details
-
getSocketAddress
Deprecated.Description copied from class:ServerAddress
Gets the underlying socket address- Overrides:
getSocketAddress
in classServerAddress
- Returns:
- socket address
-
getUnixSocketAddress
Deprecated.- Returns:
- the SocketAddress for the MongoD unix domain socket.
-
toString
Deprecated.- Overrides:
toString
in classServerAddress
-