Package com.mongodb
Class UnixServerAddress
- java.lang.Object
-
- com.mongodb.ServerAddress
-
- com.mongodb.UnixServerAddress
-
- All Implemented Interfaces:
java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnixServerAddress(java.lang.String path)
Deprecated.Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.net.InetSocketAddress
getSocketAddress()
Deprecated.Gets the underlying socket addressjava.net.SocketAddress
getUnixSocketAddress()
Deprecated.java.lang.String
toString()
Deprecated.-
Methods inherited from class com.mongodb.ServerAddress
defaultHost, defaultPort, equals, getHost, getPort, getSocketAddresses, hashCode, sameHost
-
-
-
-
Method Detail
-
getSocketAddress
public java.net.InetSocketAddress getSocketAddress()
Deprecated.Description copied from class:ServerAddress
Gets the underlying socket address- Overrides:
getSocketAddress
in classServerAddress
- Returns:
- socket address
-
getUnixSocketAddress
public java.net.SocketAddress getUnixSocketAddress()
Deprecated.- Returns:
- the SocketAddress for the MongoD unix domain socket.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classServerAddress
-
-