public interface ConfigurationChildBuilder
Modifier and Type | Method and Description |
---|---|
ServerConfigurationBuilder |
addServer()
Adds a new remote server
|
ConfigurationBuilder |
addServers(java.lang.String servers)
Adds a list of remote servers in the form: host1[:port][;host2[:port]]...
|
ExecutorFactoryConfigurationBuilder |
asyncExecutorFactory()
Configuration for the executor service used for asynchronous work on the Transport, including
asynchronous marshalling and Cache 'async operations' such as Cache.putAsync().
|
ConfigurationBuilder |
balancingStrategy(java.lang.Class<? extends org.infinispan.client.hotrod.impl.transport.tcp.RequestBalancingStrategy> balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the
servers according to this strategy.
|
ConfigurationBuilder |
balancingStrategy(java.lang.String balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the
servers according to this strategy.
|
Configuration |
build()
Builds a configuration object
|
ConfigurationBuilder |
classLoader(java.lang.ClassLoader classLoader) |
ConnectionPoolConfigurationBuilder |
connectionPool()
Configures the connection pool
|
ConfigurationBuilder |
connectionTimeout(int connectionTimeout)
This property defines the maximum socket connect timeout before giving up connecting to the
server.
|
ConfigurationBuilder |
consistentHashImpl(int version,
java.lang.Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash> consistentHashClass)
Defines the
ConsistentHash implementation to use for the specified version. |
ConfigurationBuilder |
consistentHashImpl(int version,
java.lang.String consistentHashClass)
Defines the
ConsistentHash implementation to use for the specified version. |
ConfigurationBuilder |
forceReturnValues(boolean forceReturnValues)
Whether or not to implicitly FORCE_RETURN_VALUE for all calls.
|
ConfigurationBuilder |
keySizeEstimate(int keySizeEstimate)
This hint allows sizing of byte buffers when serializing and deserializing keys, to minimize array resizing.
|
ConfigurationBuilder |
marshaller(java.lang.Class<? extends Marshaller> marshaller)
Allows you to specify a custom
Marshaller implementation to
serialize and deserialize user objects. |
ConfigurationBuilder |
marshaller(Marshaller marshaller)
Allows you to specify an instance of
Marshaller to serialize
and deserialize user objects. |
ConfigurationBuilder |
marshaller(java.lang.String marshaller)
Allows you to specify a custom
Marshaller implementation to
serialize and deserialize user objects. |
ConfigurationBuilder |
pingOnStartup(boolean pingOnStartup)
If true, a ping request is sent to a back end server in order to fetch cluster's topology.
|
ConfigurationBuilder |
protocolVersion(java.lang.String protocolVersion)
This property defines the protocol version that this client should use.
|
ConfigurationBuilder |
socketTimeout(int socketTimeout)
This property defines the maximum socket read timeout in milliseconds before giving up waiting
for bytes from the server.
|
SslConfigurationBuilder |
ssl()
SSL Configuration
|
ConfigurationBuilder |
tcpNoDelay(boolean tcpNoDelay)
Affects TCP NODELAY on the TCP stack.
|
ConfigurationBuilder |
transportFactory(java.lang.Class<? extends org.infinispan.client.hotrod.impl.transport.TransportFactory> transportFactory)
Controls which transport to use.
|
ConfigurationBuilder |
transportFactory(java.lang.String transportFactory)
Controls which transport to use.
|
ConfigurationBuilder |
valueSizeEstimate(int valueSizeEstimate)
This hint allows sizing of byte buffers when serializing and deserializing values, to minimize
array resizing.
|
ConfigurationBuilder |
withProperties(java.util.Properties properties)
Configures this builder using the specified properties
|
ServerConfigurationBuilder addServer()
ConfigurationBuilder addServers(java.lang.String servers)
ExecutorFactoryConfigurationBuilder asyncExecutorFactory()
ConfigurationBuilder balancingStrategy(java.lang.String balancingStrategy)
ConfigurationBuilder balancingStrategy(java.lang.Class<? extends org.infinispan.client.hotrod.impl.transport.tcp.RequestBalancingStrategy> balancingStrategy)
ConfigurationBuilder classLoader(java.lang.ClassLoader classLoader)
classLoader
- ConnectionPoolConfigurationBuilder connectionPool()
ConfigurationBuilder connectionTimeout(int connectionTimeout)
ConfigurationBuilder consistentHashImpl(int version, java.lang.Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash> consistentHashClass)
ConsistentHash
implementation to use for the specified version. By default,
ConsistentHashV1
is used for version 1 and ConsistentHashV2
is used for version 2.ConfigurationBuilder consistentHashImpl(int version, java.lang.String consistentHashClass)
ConsistentHash
implementation to use for the specified version. By default,
ConsistentHashV1
is used for version 1 and ConsistentHashV2
is used for version 2.ConfigurationBuilder forceReturnValues(boolean forceReturnValues)
ConfigurationBuilder keySizeEstimate(int keySizeEstimate)
ConfigurationBuilder marshaller(java.lang.String marshaller)
Marshaller
implementation to
serialize and deserialize user objects. This method is mutually exclusive with marshaller(Marshaller)
.ConfigurationBuilder marshaller(java.lang.Class<? extends Marshaller> marshaller)
Marshaller
implementation to
serialize and deserialize user objects. This method is mutually exclusive with marshaller(Marshaller)
.ConfigurationBuilder marshaller(Marshaller marshaller)
Marshaller
to serialize
and deserialize user objects. This method is mutually exclusive with marshaller(Class)
.ConfigurationBuilder pingOnStartup(boolean pingOnStartup)
ConfigurationBuilder protocolVersion(java.lang.String protocolVersion)
ConfigurationBuilder socketTimeout(int socketTimeout)
SslConfigurationBuilder ssl()
ConfigurationBuilder tcpNoDelay(boolean tcpNoDelay)
ConfigurationBuilder transportFactory(java.lang.String transportFactory)
ConfigurationBuilder transportFactory(java.lang.Class<? extends org.infinispan.client.hotrod.impl.transport.TransportFactory> transportFactory)
ConfigurationBuilder valueSizeEstimate(int valueSizeEstimate)
ConfigurationBuilder withProperties(java.util.Properties properties)
Configuration build()