Class AFUNIXSocketFactory.FactoryArg

  • Enclosing class:
    AFUNIXSocketFactory

    public static final class AFUNIXSocketFactory.FactoryArg
    extends AFUNIXSocketFactory
    A socket factory that handles a custom hostname ("junixsocket.localhost", by default, and configured by the system property "org.newsclub.net.unix.socket.hostname"), forwarding all other requests to the fallback SocketFactory. The socket path is configured through an argument passed by to the constructor. This is particularly useful for JDBC drivers that take a "socketFactory" and a "socketFactoryArg". The latter will be passed as a constructor argument.
    • Constructor Detail

      • FactoryArg

        public FactoryArg​(java.lang.String socketPath)
      • FactoryArg

        public FactoryArg​(java.io.File file)