Gemfire JavaDocs
Package org.apache.geode.cache.client
Interface SocketFactory
-
- All Known Implementing Classes:
SniProxySocketFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SocketFactory
A socket factory used to create sockets from a client to locators or servers. Sockets returned by this factory will have the rest of the configuration options specified on thePool
and on theClientCache
applied to them. In particular, sockets returned by this factory will be wrapped with SSLSockets if ssl is enabled for this client cache based onConfigurationProperties.SSL_ENABLED_COMPONENTS
. Sockets return by this factory should not be SSLSockets. For modifying SSL settings, seeSSLParameterExtension
Sockets returned by this factory should be in an unconnected state, similar toSocket()
This factory can be used for configuring a proxy, or overriding various socket settings.
-
-
Field Summary
Fields Modifier and Type Field Description static SocketFactory
DEFAULT
The default socket factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.Socket
createSocket()
Create an unconnected tcp socket for establishing a client.
-
-
-
Field Detail
-
DEFAULT
@Immutable static final SocketFactory DEFAULT
The default socket factory
-
-