Package com.mongodb

Class UnixServerAddress

java.lang.Object
com.mongodb.ServerAddress
com.mongodb.UnixServerAddress
All Implemented Interfaces:
Serializable

@Immutable public final class UnixServerAddress extends ServerAddress
Represents the location of a MongoD unix domain socket. It is not supported in GraalVM native image.

Requires the 'jnr.unixsocket' library.

Since:
3.7
See Also:
  • Constructor Details

    • UnixServerAddress

      public UnixServerAddress(String path)
      Creates a new instance
      Parameters:
      path - the path of the MongoD unix domain socket.
      Throws:
      UnsupportedOperationException - If called in a GraalVM native image.
  • Method Details