@Immutable public final class UnixServerAddress extends ServerAddress
Requires the 'jnr.unixsocket' library.
Constructor and Description |
---|
UnixServerAddress(java.lang.String path)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
java.net.InetSocketAddress |
getSocketAddress()
Gets the underlying socket address
|
java.net.SocketAddress |
getUnixSocketAddress() |
java.lang.String |
toString() |
defaultHost, defaultPort, equals, getHost, getPort, hashCode, sameHost
public UnixServerAddress(java.lang.String path)
path
- the path of the MongoD unix domain socket.public java.net.InetSocketAddress getSocketAddress()
ServerAddress
getSocketAddress
in class ServerAddress
public java.net.SocketAddress getUnixSocketAddress()
public java.lang.String toString()
toString
in class ServerAddress
Copyright © 2010 - 2020 Adobe. All Rights Reserved