public abstract class AbstractConfigurationChildBuilder extends Object implements ConfigurationChildBuilder
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConfigurationChildBuilder(ConfigurationBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
ServerConfigurationBuilder |
addServer()
Adds a new remote server
|
ConfigurationBuilder |
addServers(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(Class<?> balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the
servers according to this strategy.
|
ConfigurationBuilder |
balancingStrategy(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(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,
Class<?> consistentHashClass)
Defines the
ConsistentHash implementation to use for the specified version. |
ConfigurationBuilder |
consistentHashImpl(int version,
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(Class<? extends Marshaller> marshaller)
Allows you to specify a custom
org.infinispan.marshall.Marshaller implementation to
serialize and deserialize user objects. |
ConfigurationBuilder |
marshaller(Marshaller marshaller)
Allows you to specify an instance of
org.infinispan.marshall.Marshaller to serialize
and deserialize user objects. |
ConfigurationBuilder |
marshaller(String marshaller)
Allows you to specify a custom
org.infinispan.marshall.Marshaller implementation to
serialize and deserialize user objects. |
ConfigurationBuilder |
maxRetries(int retriesPerServer)
It sets the maximum number of retries for each request.
|
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(String protocolVersion)
This property defines the protocol version that this client should use.
|
SecurityConfigurationBuilder |
security()
Security Configuration
|
ConfigurationBuilder |
socketTimeout(int socketTimeout)
This property defines the maximum socket read timeout in milliseconds before giving up waiting
for bytes from the server.
|
ConfigurationBuilder |
tcpKeepAlive(boolean tcpKeepAlive)
Affects TCP KEEPALIVE on the TCP stack.
|
ConfigurationBuilder |
tcpNoDelay(boolean tcpNoDelay)
Affects TCP NODELAY on the TCP stack.
|
ConfigurationBuilder |
transportFactory(Class<?> transportFactory)
Controls which transport to use.
|
ConfigurationBuilder |
transportFactory(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(Properties properties)
Configures this builder using the specified properties
|
protected AbstractConfigurationChildBuilder(ConfigurationBuilder builder)
public ServerConfigurationBuilder addServer()
ConfigurationChildBuilderaddServer in interface ConfigurationChildBuilderpublic ConfigurationBuilder addServers(String servers)
ConfigurationChildBuilderaddServers in interface ConfigurationChildBuilderpublic ExecutorFactoryConfigurationBuilder asyncExecutorFactory()
ConfigurationChildBuilderasyncExecutorFactory in interface ConfigurationChildBuilderpublic ConfigurationBuilder balancingStrategy(String balancingStrategy)
ConfigurationChildBuilderbalancingStrategy in interface ConfigurationChildBuilderpublic ConfigurationBuilder balancingStrategy(Class<?> balancingStrategy)
ConfigurationChildBuilderbalancingStrategy in interface ConfigurationChildBuilderpublic ConfigurationBuilder classLoader(ClassLoader classLoader)
classLoader in interface ConfigurationChildBuilderpublic ConnectionPoolConfigurationBuilder connectionPool()
ConfigurationChildBuilderconnectionPool in interface ConfigurationChildBuilderpublic ConfigurationBuilder connectionTimeout(int connectionTimeout)
ConfigurationChildBuilderconnectionTimeout in interface ConfigurationChildBuilderpublic ConfigurationBuilder consistentHashImpl(int version, Class<?> consistentHashClass)
ConfigurationChildBuilderConsistentHash implementation to use for the specified version. By default,
ConsistentHashV1 is used for version 1 and ConsistentHashV2 is used for version 2.consistentHashImpl in interface ConfigurationChildBuilderpublic ConfigurationBuilder consistentHashImpl(int version, String consistentHashClass)
ConfigurationChildBuilderConsistentHash implementation to use for the specified version. By default,
ConsistentHashV1 is used for version 1 and ConsistentHashV2 is used for version 2.consistentHashImpl in interface ConfigurationChildBuilderpublic ConfigurationBuilder forceReturnValues(boolean forceReturnValues)
ConfigurationChildBuilderforceReturnValues in interface ConfigurationChildBuilderpublic ConfigurationBuilder keySizeEstimate(int keySizeEstimate)
ConfigurationChildBuilderkeySizeEstimate in interface ConfigurationChildBuilderpublic ConfigurationBuilder marshaller(String marshaller)
ConfigurationChildBuilderorg.infinispan.marshall.Marshaller implementation to
serialize and deserialize user objects. This method is mutually exclusive with ConfigurationChildBuilder.marshaller(Marshaller).marshaller in interface ConfigurationChildBuilderpublic ConfigurationBuilder marshaller(Class<? extends Marshaller> marshaller)
ConfigurationChildBuilderorg.infinispan.marshall.Marshaller implementation to
serialize and deserialize user objects. This method is mutually exclusive with ConfigurationChildBuilder.marshaller(Marshaller).marshaller in interface ConfigurationChildBuilderpublic ConfigurationBuilder marshaller(Marshaller marshaller)
ConfigurationChildBuilderorg.infinispan.marshall.Marshaller to serialize
and deserialize user objects. This method is mutually exclusive with ConfigurationChildBuilder.marshaller(Class).marshaller in interface ConfigurationChildBuilderpublic ConfigurationBuilder pingOnStartup(boolean pingOnStartup)
ConfigurationChildBuilderpingOnStartup in interface ConfigurationChildBuilderpublic ConfigurationBuilder protocolVersion(String protocolVersion)
ConfigurationChildBuilderprotocolVersion in interface ConfigurationChildBuilderpublic ConfigurationBuilder socketTimeout(int socketTimeout)
ConfigurationChildBuildersocketTimeout in interface ConfigurationChildBuilderpublic SecurityConfigurationBuilder security()
ConfigurationChildBuildersecurity in interface ConfigurationChildBuilderpublic ConfigurationBuilder tcpNoDelay(boolean tcpNoDelay)
ConfigurationChildBuildertcpNoDelay in interface ConfigurationChildBuilderpublic ConfigurationBuilder tcpKeepAlive(boolean tcpKeepAlive)
ConfigurationChildBuildertcpKeepAlive in interface ConfigurationChildBuilderpublic ConfigurationBuilder transportFactory(String transportFactory)
ConfigurationChildBuildertransportFactory in interface ConfigurationChildBuilderpublic ConfigurationBuilder transportFactory(Class<?> transportFactory)
ConfigurationChildBuildertransportFactory in interface ConfigurationChildBuilderpublic ConfigurationBuilder valueSizeEstimate(int valueSizeEstimate)
ConfigurationChildBuildervalueSizeEstimate in interface ConfigurationChildBuilderpublic ConfigurationBuilder maxRetries(int retriesPerServer)
ConfigurationChildBuildermaxRetries in interface ConfigurationChildBuilderpublic ConfigurationBuilder withProperties(Properties properties)
ConfigurationChildBuilderwithProperties in interface ConfigurationChildBuilderpublic Configuration build()
ConfigurationChildBuilderbuild in interface ConfigurationChildBuilderCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.