Serializable@Immutable public final class UnixServerAddress extends ServerAddress
Requires the 'jnr.unixsocket' library.
| Constructor | Description |
|---|---|
UnixServerAddress(String path) |
Creates a new instance
|
| Modifier and Type | Method | Description |
|---|---|---|
InetSocketAddress |
getSocketAddress() |
Gets the underlying socket address
|
SocketAddress |
getUnixSocketAddress() |
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdefaultHost, defaultPort, equals, getHost, getPort, hashCode, sameHostpublic UnixServerAddress(String path)
path - the path of the MongoD unix domain socket.public InetSocketAddress getSocketAddress()
ServerAddressgetSocketAddress in class ServerAddresspublic SocketAddress getUnixSocketAddress()
public String toString()
toString in class ServerAddress