Class AFUNIXSocketFactory.SystemProperty

All Implemented Interfaces:
AFSocketAddressFromHostname<AFUNIXSocketAddress>
Enclosing class:
AFUNIXSocketFactory

public static final class AFUNIXSocketFactory.SystemProperty 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 a system property, "org.newsclub.net.unix.socket.default". NOTE: While it is technically possible, it is highly discouraged to programmatically change the value of the property as it can lead to concurrency issues and undefined behavior.