@FunctionalInterface public interface SocketFactory
Pool
and on the ClientCache
applied to them. In particular,
sockets returned by this factory will be wrapped with SSLSockets if ssl is enabled
for this client cache based on ConfigurationProperties.SSL_ENABLED_COMPONENTS
.
Sockets return by this factory should not be SSLSockets. For modifying SSL settings,
see SSLParameterExtension
Sockets returned by this factory should be in an unconnected state, similar to
Socket()
This factory can be used for configuring a proxy, or overriding various socket settings.Modifier and Type | Field and Description |
---|---|
static SocketFactory |
DEFAULT
The default socket factory
|
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket()
Create an unconnected tcp socket for establishing a client.
|
@Immutable static final SocketFactory DEFAULT
Socket createSocket() throws IOException
IOException
- if the socket cannot be created