Class AFUNIXSocketFactory.FactoryArg

java.lang.Object
All Implemented Interfaces:
AFSocketAddressFromHostname<AFUNIXSocketAddress>
Enclosing class:
AFUNIXSocketFactory

public static final class AFUNIXSocketFactory.FactoryArg extends AFUNIXSocketFactory
A socket factory that handles a custom hostname ("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.