Package com.mongodb
Class UnixServerAddress
-
- com.mongodb.ServerAddress
-
- com.mongodb.UnixServerAddress
-
- All Implemented Interfaces:
@Immutable public final class UnixServerAddress extends ServerAddress
Represents the location of a MongoD unix domain socket.Requires the 'jnr.unixsocket' library.
- Since:
- 3.7
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description getSocketAddress()
Gets the underlying socket addressgetUnixSocketAddress()
toString()
-
Methods inherited from class com.mongodb.ServerAddress
defaultHost, defaultPort, equals, getHost, getPort, getSocketAddresses, hashCode, sameHost
-
-
-
-
Method Detail
-
getSocketAddress
public getSocketAddress()
Description copied from class:ServerAddress
Gets the underlying socket address- Overrides:
getSocketAddress
in classServerAddress
- Returns:
- socket address
-
getUnixSocketAddress
public getUnixSocketAddress()
- Returns:
- the SocketAddress for the MongoD unix domain socket.
-
toString
public toString()
- Overrides:
toString
in classServerAddress
-
-