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, wait
defaultHost, defaultPort, equals, getHost, getPort, hashCode, sameHost
public UnixServerAddress(String path)
path
- the path of the MongoD unix domain socket.public InetSocketAddress getSocketAddress()
ServerAddress
getSocketAddress
in class ServerAddress
public SocketAddress getUnixSocketAddress()
public String toString()
toString
in class ServerAddress