Interface ConfigurationChildBuilder
-
- All Known Implementing Classes:
AbstractConfigurationChildBuilder,AbstractSecurityConfigurationChildBuilder,AuthenticationConfigurationBuilder,ClusterConfigurationBuilder,ConfigurationBuilder,ConnectionPoolConfigurationBuilder,ExecutorFactoryConfigurationBuilder,NearCacheConfigurationBuilder,SecurityConfigurationBuilder,ServerConfigurationBuilder,SslConfigurationBuilder,StatisticsConfigurationBuilder,TransactionConfigurationBuilder
public interface ConfigurationChildBuilderConfigurationChildBuilder.- Since:
- 5.3
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ClusterConfigurationBuilderaddCluster(String clusterName)Adds a new remote server clusterConfigurationBuilderaddContextInitializer(String contextInitializer)Supply aSerializationContextInitializerimplementation to register classes with theProtoStreamMarshaller'sSerializationContext.ConfigurationBuilderaddContextInitializer(org.infinispan.protostream.SerializationContextInitializer contextInitializer)Supply aSerializationContextInitializerimplementation to register classes with theProtoStreamMarshaller'sSerializationContext.ConfigurationBuilderaddContextInitializers(org.infinispan.protostream.SerializationContextInitializer... contextInitializers)Convenience method to supply multipleSerializationContextInitializerimplementations.ConfigurationBuilderaddJavaSerialWhiteList(String... regEx)List of regular expressions for classes that can be deserialized using standard Java deserialization when reading data that might have been stored with a different endpoint, e.g.ServerConfigurationBuilderaddServer()Adds a new remote serverConfigurationBuilderaddServers(String servers)Adds a list of remote servers in the form: host1[:port][;host2[:port]]...ExecutorFactoryConfigurationBuilderasyncExecutorFactory()Configuration for the executor service used for asynchronous work on the Transport, including asynchronous marshalling and Cache 'async operations' such as Cache.putAsync().ConfigurationBuilderbalancingStrategy(Class<? extends FailoverRequestBalancingStrategy> balancingStrategy)For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.ConfigurationBuilderbalancingStrategy(String balancingStrategy)For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.ConfigurationBuilderbalancingStrategy(Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory)For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.ConfigurationBuilderbalancingStrategy(FailoverRequestBalancingStrategy balancingStrategy)Deprecated.since 9.3.ConfigurationBuilderbatchSize(int batchSize)Sets the batch size of internal iterators (ie.Configurationbuild()Builds a configuration objectConfigurationBuilderclassLoader(ClassLoader classLoader)Deprecated.since 9.0.ConfigurationBuilderclientIntelligence(ClientIntelligence clientIntelligence)Specifies the level of "intelligence" the client should haveConnectionPoolConfigurationBuilderconnectionPool()Configures the connection poolConfigurationBuilderconnectionTimeout(int connectionTimeout)This property defines the maximum socket connect timeout in milliseconds before giving up connecting to the server.ConfigurationBuilderconsistentHashImpl(int version, Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash> consistentHashClass)Defines theConsistentHashimplementation to use for the specified version.ConfigurationBuilderconsistentHashImpl(int version, String consistentHashClass)Defines theConsistentHashimplementation to use for the specified version.ConfigurationBuilderforceReturnValues(boolean forceReturnValues)Whether or not to implicitly FORCE_RETURN_VALUE for all calls.ConfigurationBuilderkeySizeEstimate(int keySizeEstimate)This hint allows sizing of byte buffers when serializing and deserializing keys, to minimize array resizing.ConfigurationBuildermarshaller(Class<? extends Marshaller> marshaller)Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects.ConfigurationBuildermarshaller(String marshaller)Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects.ConfigurationBuildermarshaller(Marshaller marshaller)Allows you to specify an instance ofMarshallerto serialize and deserialize user objects.ConfigurationBuildermaxRetries(int maxRetries)It sets the maximum number of retries for each request.ConfigurationBuilderprotocolVersion(String protocolVersion)Deprecated.since 9.0.RemoteCacheConfigurationBuilderremoteCache(String name)Per-cache configurationSecurityConfigurationBuildersecurity()Security ConfigurationConfigurationBuildersocketTimeout(int socketTimeout)This property defines the maximum socket read timeout in milliseconds before giving up waiting for bytes from the server.StatisticsConfigurationBuilderstatistics()Configures client-side statistics.ConfigurationBuildertcpKeepAlive(boolean keepAlive)Affects TCP KEEPALIVE on the TCP stack.ConfigurationBuildertcpNoDelay(boolean tcpNoDelay)Affects TCP NODELAY on the TCP stack.TransactionConfigurationBuildertransaction()Transaction configurationConfigurationBuilderuri(String uri)Configures this builder using the specified URI.ConfigurationBuilderuri(URI uri)Configures this builder using the specified URI.ConfigurationBuildervalueSizeEstimate(int valueSizeEstimate)This hint allows sizing of byte buffers when serializing and deserializing values, to minimize array resizing.ConfigurationBuilderversion(ProtocolVersion protocolVersion)This property defines the protocol version that this client should use.ConfigurationBuilderwithProperties(Properties properties)Configures this builder using the specified properties.
-
-
-
Method Detail
-
addServer
ServerConfigurationBuilder addServer()
Adds a new remote server
-
addCluster
ClusterConfigurationBuilder addCluster(String clusterName)
Adds a new remote server cluster
-
addServers
ConfigurationBuilder addServers(String servers)
Adds a list of remote servers in the form: host1[:port][;host2[:port]]...
-
asyncExecutorFactory
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().
-
balancingStrategy
ConfigurationBuilder balancingStrategy(String balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.
-
balancingStrategy
@Deprecated ConfigurationBuilder balancingStrategy(FailoverRequestBalancingStrategy balancingStrategy)
Deprecated.since 9.3. To be removed in 12.0. UsebalancingStrategy(Supplier)instead.For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.
-
balancingStrategy
ConfigurationBuilder balancingStrategy(Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.
-
balancingStrategy
ConfigurationBuilder balancingStrategy(Class<? extends FailoverRequestBalancingStrategy> balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.
-
classLoader
@Deprecated ConfigurationBuilder classLoader(ClassLoader classLoader)
Deprecated.since 9.0. To be removed in 12.0. If you need to load configuration resources from other locations, you will need to do so yourself and use the appropriate configuration methods (e.g.SslConfigurationBuilder.sslContext(javax.net.ssl.SSLContext))Specifies theClassLoaderused to find certain resources used by configuration when specified by name (e.g. certificate stores). Infinispan will search through the classloader which loaded this class, the system classloader, the TCCL and the OSGi classloader (if applicable).
-
clientIntelligence
ConfigurationBuilder clientIntelligence(ClientIntelligence clientIntelligence)
Specifies the level of "intelligence" the client should have
-
connectionPool
ConnectionPoolConfigurationBuilder connectionPool()
Configures the connection pool
-
connectionTimeout
ConfigurationBuilder connectionTimeout(int connectionTimeout)
This property defines the maximum socket connect timeout in milliseconds before giving up connecting to the server.
-
consistentHashImpl
ConfigurationBuilder consistentHashImpl(int version, Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash> consistentHashClass)
Defines theConsistentHashimplementation to use for the specified version. By default,ConsistentHashV2is used for version 1 andConsistentHashV2is used for version 2.
-
consistentHashImpl
ConfigurationBuilder consistentHashImpl(int version, String consistentHashClass)
Defines theConsistentHashimplementation to use for the specified version. By default,ConsistentHashV2is used for version 1 andConsistentHashV2is used for version 2.
-
forceReturnValues
ConfigurationBuilder forceReturnValues(boolean forceReturnValues)
Whether or not to implicitly FORCE_RETURN_VALUE for all calls.
-
keySizeEstimate
ConfigurationBuilder keySizeEstimate(int keySizeEstimate)
This hint allows sizing of byte buffers when serializing and deserializing keys, to minimize array resizing. It defaults to 64.
-
marshaller
ConfigurationBuilder marshaller(String marshaller)
Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects. This method is mutually exclusive withmarshaller(Marshaller).
-
marshaller
ConfigurationBuilder marshaller(Class<? extends Marshaller> marshaller)
Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects. This method is mutually exclusive withmarshaller(Marshaller).
-
marshaller
ConfigurationBuilder marshaller(Marshaller marshaller)
Allows you to specify an instance ofMarshallerto serialize and deserialize user objects. This method is mutually exclusive withmarshaller(Class).
-
addContextInitializer
ConfigurationBuilder addContextInitializer(String contextInitializer)
Supply aSerializationContextInitializerimplementation to register classes with theProtoStreamMarshaller'sSerializationContext.
-
addContextInitializer
ConfigurationBuilder addContextInitializer(org.infinispan.protostream.SerializationContextInitializer contextInitializer)
Supply aSerializationContextInitializerimplementation to register classes with theProtoStreamMarshaller'sSerializationContext.
-
addContextInitializers
ConfigurationBuilder addContextInitializers(org.infinispan.protostream.SerializationContextInitializer... contextInitializers)
Convenience method to supply multipleSerializationContextInitializerimplementations.
-
protocolVersion
@Deprecated ConfigurationBuilder protocolVersion(String protocolVersion)
Deprecated.since 9.0. To be removed in 12.0. Useversion(ProtocolVersion)instead.This property defines the protocol version that this client should use. Defaults to the latest protocol version supported by this client.
-
version
ConfigurationBuilder version(ProtocolVersion protocolVersion)
This property defines the protocol version that this client should use. Defaults to the latest protocol version supported by this client.
-
socketTimeout
ConfigurationBuilder socketTimeout(int socketTimeout)
This property defines the maximum socket read timeout in milliseconds before giving up waiting for bytes from the server. Defaults to 60000 (1 minute)
-
security
SecurityConfigurationBuilder security()
Security Configuration
-
tcpNoDelay
ConfigurationBuilder tcpNoDelay(boolean tcpNoDelay)
Affects TCP NODELAY on the TCP stack. Defaults to enabled
-
tcpKeepAlive
ConfigurationBuilder tcpKeepAlive(boolean keepAlive)
Affects TCP KEEPALIVE on the TCP stack. Defaults to disable
-
uri
ConfigurationBuilder uri(URI uri)
Configures this builder using the specified URI.
-
uri
ConfigurationBuilder uri(String uri)
Configures this builder using the specified URI.
-
valueSizeEstimate
ConfigurationBuilder valueSizeEstimate(int valueSizeEstimate)
This hint allows sizing of byte buffers when serializing and deserializing values, to minimize array resizing. It defaults to 512
-
maxRetries
ConfigurationBuilder maxRetries(int maxRetries)
It sets the maximum number of retries for each request. A valid value should be greater or equals than 0 (zero). Zero means no retry will made in case of a network failure. It defaults to 10.
-
addJavaSerialWhiteList
ConfigurationBuilder addJavaSerialWhiteList(String... regEx)
List of regular expressions for classes that can be deserialized using standard Java deserialization when reading data that might have been stored with a different endpoint, e.g. REST.
-
batchSize
ConfigurationBuilder batchSize(int batchSize)
Sets the batch size of internal iterators (ie.keySet().iterator(). Defaults to 10_000- Parameters:
batchSize- the batch size to set- Returns:
- this configuration builder with the batch size set
-
statistics
StatisticsConfigurationBuilder statistics()
Configures client-side statistics.
-
transaction
TransactionConfigurationBuilder transaction()
Transaction configuration
-
remoteCache
RemoteCacheConfigurationBuilder remoteCache(String name)
Per-cache configuration- Parameters:
name- the name of the cache to which specific configuration should be applied. You may use wildcard globbing (e.g.cache-*) which will apply to any cache that matches.- Returns:
- the
RemoteCacheConfigurationBuilderfor the cache
-
withProperties
ConfigurationBuilder withProperties(Properties properties)
Configures this builder using the specified properties. SeeConfigurationBuilderfor a list.
-
build
Configuration build()
Builds a configuration object
-
-