Package com.mongodb

Class UnixServerAddress

  • All Implemented Interfaces:
    java.io.Serializable

    @Immutable
    @Deprecated(since="2021-05-27")
    public final class UnixServerAddress
    extends ServerAddress
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    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​(java.lang.String path)
        Deprecated.
        Creates a new instance
        Parameters:
        path - the path of the MongoD unix domain socket.
    • Method Detail

      • getSocketAddress

        public java.net.InetSocketAddress getSocketAddress()
        Deprecated.
        Description copied from class: ServerAddress
        Gets the underlying socket address
        Overrides:
        getSocketAddress in class ServerAddress
        Returns:
        socket address
      • getUnixSocketAddress

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