Package com.mongodb

Class 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
    • Constructor Detail

      • UnixServerAddress

        public UnixServerAddress​( path)
        Creates a new instance
        Parameters:
        path - the path of the MongoD unix domain socket.
    • Method Detail

      • getUnixSocketAddress

        public  getUnixSocketAddress()
        Returns:
        the SocketAddress for the MongoD unix domain socket.