Interface ConfigurationChildBuilder
-
- All Known Implementing Classes:
AbstractConfigurationChildBuilder,AbstractSecurityConfigurationChildBuilder,AuthenticationConfigurationBuilder,ClusterConfigurationBuilder,ConnectionPoolConfigurationBuilder,ExecutorFactoryConfigurationBuilder,HotRodConfigurationBuilder,NearCacheConfigurationBuilder,SecurityConfigurationBuilder,ServerConfigurationBuilder,SslConfigurationBuilder,StatisticsConfigurationBuilder
public interface ConfigurationChildBuilderConfigurationChildBuilder.- Since:
- 14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClusterConfigurationBuilderaddCluster(String clusterName)Adds a new remote server clusterHotRodConfigurationBuilderaddContextInitializer(String contextInitializer)Supply aSerializationContextInitializerimplementation to register classes with theProtoStreamMarshaller'sSerializationContext.HotRodConfigurationBuilderaddContextInitializer(org.infinispan.protostream.SerializationContextInitializer contextInitializer)Supply aSerializationContextInitializerimplementation to register classes with theProtoStreamMarshaller'sSerializationContext.HotRodConfigurationBuilderaddContextInitializers(org.infinispan.protostream.SerializationContextInitializer... contextInitializers)Convenience method to supply multipleSerializationContextInitializerimplementations.HotRodConfigurationBuilderaddJavaSerialAllowList(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 serverHotRodConfigurationBuilderaddServers(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().HotRodConfigurationBuilderbalancingStrategy(Class<? extends FailoverRequestBalancingStrategy> balancingStrategy)For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.HotRodConfigurationBuilderbalancingStrategy(String balancingStrategy)For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.HotRodConfigurationBuilderbalancingStrategy(Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory)For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.HotRodConfigurationBuilderbatchSize(int batchSize)Sets the batch size of internal iterators (ie.HotRodConfigurationbuild()Builds a configuration objectHotRodConfigurationBuilderclientIntelligence(ClientIntelligence clientIntelligence)Specifies the level of "intelligence" the client should haveConnectionPoolConfigurationBuilderconnectionPool()Configures the connection poolHotRodConfigurationBuilderconnectionTimeout(int connectionTimeout)This property defines the maximum socket connect timeout in milliseconds before giving up connecting to the server.HotRodConfigurationBuilderconsistentHashImpl(int version, Class<? extends ConsistentHash> consistentHashClass)Defines theConsistentHashimplementation to use for the specified version.HotRodConfigurationBuilderconsistentHashImpl(int version, String consistentHashClass)Defines theConsistentHashimplementation to use for the specified version.HotRodConfigurationBuilderforceReturnValues(boolean forceReturnValues)Whether or not to implicitly FORCE_RETURN_VALUE for all calls.HotRodConfigurationBuildermarshaller(Class<? extends org.infinispan.commons.marshall.Marshaller> marshaller)Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects.HotRodConfigurationBuildermarshaller(String marshaller)Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects.HotRodConfigurationBuildermarshaller(org.infinispan.commons.marshall.Marshaller marshaller)Allows you to specify an instance ofMarshallerto serialize and deserialize user objects.HotRodConfigurationBuildermaxRetries(int maxRetries)It sets the maximum number of retries for each request.RemoteCacheConfigurationBuilderremoteCache(String name)Per-cache configurationSecurityConfigurationBuildersecurity()Security ConfigurationHotRodConfigurationBuildersocketTimeout(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.HotRodConfigurationBuildertcpKeepAlive(boolean keepAlive)Affects TCP KEEPALIVE on the TCP stack.HotRodConfigurationBuildertcpNoDelay(boolean tcpNoDelay)Affects TCP NODELAY on the TCP stack.HotRodConfigurationBuildertransactionTimeout(long timeout, TimeUnit timeUnit)Sets the transaction's timeout.HotRodConfigurationBuildertransportFactory(TransportFactory transportFactory)Set the TransportFactory.HotRodConfigurationBuilderuri(String uri)Configures this builder using the specified URI.HotRodConfigurationBuilderuri(URI uri)Configures this builder using the specified URI.HotRodConfigurationBuilderversion(ProtocolVersion protocolVersion)This property defines the protocol version that this client should use.HotRodConfigurationBuilderwithProperties(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
HotRodConfigurationBuilder 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
HotRodConfigurationBuilder balancingStrategy(String balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.
-
balancingStrategy
HotRodConfigurationBuilder balancingStrategy(Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.
-
balancingStrategy
HotRodConfigurationBuilder balancingStrategy(Class<? extends FailoverRequestBalancingStrategy> balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.
-
clientIntelligence
HotRodConfigurationBuilder clientIntelligence(ClientIntelligence clientIntelligence)
Specifies the level of "intelligence" the client should have
-
connectionPool
ConnectionPoolConfigurationBuilder connectionPool()
Configures the connection pool
-
connectionTimeout
HotRodConfigurationBuilder connectionTimeout(int connectionTimeout)
This property defines the maximum socket connect timeout in milliseconds before giving up connecting to the server.
-
consistentHashImpl
HotRodConfigurationBuilder consistentHashImpl(int version, Class<? extends ConsistentHash> consistentHashClass)
Defines theConsistentHashimplementation to use for the specified version. By default,ConsistentHashV2is used for version 1 andConsistentHashV2is used for version 2.
-
consistentHashImpl
HotRodConfigurationBuilder 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
HotRodConfigurationBuilder forceReturnValues(boolean forceReturnValues)
Whether or not to implicitly FORCE_RETURN_VALUE for all calls.
-
marshaller
HotRodConfigurationBuilder marshaller(String marshaller)
Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects. This method is mutually exclusive withmarshaller(Marshaller).
-
marshaller
HotRodConfigurationBuilder marshaller(Class<? extends org.infinispan.commons.marshall.Marshaller> marshaller)
Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects. This method is mutually exclusive withmarshaller(Marshaller).
-
marshaller
HotRodConfigurationBuilder marshaller(org.infinispan.commons.marshall.Marshaller marshaller)
Allows you to specify an instance ofMarshallerto serialize and deserialize user objects. This method is mutually exclusive withmarshaller(Class).
-
addContextInitializer
HotRodConfigurationBuilder addContextInitializer(String contextInitializer)
Supply aSerializationContextInitializerimplementation to register classes with theProtoStreamMarshaller'sSerializationContext.
-
addContextInitializer
HotRodConfigurationBuilder addContextInitializer(org.infinispan.protostream.SerializationContextInitializer contextInitializer)
Supply aSerializationContextInitializerimplementation to register classes with theProtoStreamMarshaller'sSerializationContext.
-
addContextInitializers
HotRodConfigurationBuilder addContextInitializers(org.infinispan.protostream.SerializationContextInitializer... contextInitializers)
Convenience method to supply multipleSerializationContextInitializerimplementations.
-
version
HotRodConfigurationBuilder 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
HotRodConfigurationBuilder 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
HotRodConfigurationBuilder tcpNoDelay(boolean tcpNoDelay)
Affects TCP NODELAY on the TCP stack. Defaults to enabled
-
tcpKeepAlive
HotRodConfigurationBuilder tcpKeepAlive(boolean keepAlive)
Affects TCP KEEPALIVE on the TCP stack. Defaults to disable
-
uri
HotRodConfigurationBuilder uri(URI uri)
Configures this builder using the specified URI.
-
uri
HotRodConfigurationBuilder uri(String uri)
Configures this builder using the specified URI.
-
maxRetries
HotRodConfigurationBuilder 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.
-
addJavaSerialAllowList
HotRodConfigurationBuilder addJavaSerialAllowList(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
HotRodConfigurationBuilder 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.
-
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
-
transactionTimeout
HotRodConfigurationBuilder transactionTimeout(long timeout, TimeUnit timeUnit)
Sets the transaction's timeout.This timeout is used by the server to rollback unrecoverable transaction when they are idle for this amount of time.
An unrecoverable transaction are transaction enlisted as Synchronization (
TransactionMode.NON_XA) or XAResource without recovery enabled (TransactionMode.NON_DURABLE_XA).For XAResource, this value is overwritten by XAResource#setTransactionTimeout(int).
It defaults to 1 minute.
-
transportFactory
HotRodConfigurationBuilder transportFactory(TransportFactory transportFactory)
Set the TransportFactory. It defaults toDefaultTransportFactory- Parameters:
transportFactory- an instance ofTransportFactory
-
withProperties
HotRodConfigurationBuilder withProperties(Properties properties)
Configures this builder using the specified properties. SeeHotRodConfigurationBuilderfor a list.
-
build
HotRodConfiguration build()
Builds a configuration object
-
-