Class Configuration
java.lang.Object
org.infinispan.client.hotrod.configuration.Configuration
Configuration.
- Since:
- 5.3
- Author:
- Tristan Tarrant
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(ExecutorFactoryConfiguration asyncExecutorFactory, Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory, ClassLoader classLoader, ClientIntelligence clientIntelligence, ConnectionPoolConfiguration connectionPool, int connectionTimeout, Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash>[] consistentHashImpl, int dnsResolverMinTTL, int dnsResolverMaxTTL, int dnsResolverNegativeTTL, boolean forceReturnValues, int keySizeEstimate, Marshaller marshaller, Class<? extends Marshaller> marshallerClass, ProtocolVersion protocolVersion, List<ServerConfiguration> servers, int socketTimeout, SecurityConfiguration security, boolean tcpNoDelay, boolean tcpKeepAlive, int valueSizeEstimate, int maxRetries, NearCacheConfiguration nearCache, List<ClusterConfiguration> clusters, List<String> serialAllowList, int batchSize, TransactionConfiguration transaction, StatisticsConfiguration statistics, Features features, List<org.infinispan.protostream.SerializationContextInitializer> contextInitializers, Map<String, RemoteCacheConfiguration> remoteCaches, TransportFactory transportFactory, boolean tracingPropagationEnabled) -
Method Summary
Modifier and TypeMethodDescriptionaddRemoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer) Create a newRemoteCacheConfiguration.intDeprecated, for removal: This API element is subject to removal in a future version.clusters()intClass<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash>[]Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash>consistentHashImpl(int version) intintintfeatures()booleanDeprecated, for removal: This API element is subject to removal in a future version.List<org.infinispan.protostream.SerializationContextInitializer>intDeprecated, for removal: This API element is subject to removal in a future version.Since 12.0, does nothing and will be removed in 15.0Class<? extends Marshaller>intDeprecated, for removal: This API element is subject to removal in a future version.voidremoveRemoteCache(String name) Remove aRemoteCacheConfigurationfrom thisConfiguration.security()Deprecated, for removal: This API element is subject to removal in a future version.UseserialAllowList()instead.servers()intbooleanbooleantoString()booleanOpenTelemetry tracing propagation will be activated if this property is true and if the OpenTelemetry API jar is detected on the classpath.Deprecated, for removal: This API element is subject to removal in a future version.since 12.0.longintDeprecated, for removal: This API element is subject to removal in a future version.Since 12.0, does nothing and will be removed in 15.0version()
-
Constructor Details
-
Configuration
public Configuration(ExecutorFactoryConfiguration asyncExecutorFactory, Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory, ClassLoader classLoader, ClientIntelligence clientIntelligence, ConnectionPoolConfiguration connectionPool, int connectionTimeout, Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash>[] consistentHashImpl, int dnsResolverMinTTL, int dnsResolverMaxTTL, int dnsResolverNegativeTTL, boolean forceReturnValues, int keySizeEstimate, Marshaller marshaller, Class<? extends Marshaller> marshallerClass, ProtocolVersion protocolVersion, List<ServerConfiguration> servers, int socketTimeout, SecurityConfiguration security, boolean tcpNoDelay, boolean tcpKeepAlive, int valueSizeEstimate, int maxRetries, NearCacheConfiguration nearCache, List<ClusterConfiguration> clusters, List<String> serialAllowList, int batchSize, TransactionConfiguration transaction, StatisticsConfiguration statistics, Features features, List<org.infinispan.protostream.SerializationContextInitializer> contextInitializers, Map<String, RemoteCacheConfiguration> remoteCaches, TransportFactory transportFactory, boolean tracingPropagationEnabled)
-
-
Method Details
-
asyncExecutorFactory
-
balancingStrategyFactory
-
classLoader
Deprecated, for removal: This API element is subject to removal in a future version. -
clientIntelligence
-
connectionPool
-
connectionTimeout
public int connectionTimeout() -
consistentHashImpl
public Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash>[] consistentHashImpl() -
consistentHashImpl
public Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash> consistentHashImpl(int version) -
dnsResolverMinTTL
public int dnsResolverMinTTL() -
dnsResolverMaxTTL
public int dnsResolverMaxTTL() -
dnsResolverNegativeTTL
public int dnsResolverNegativeTTL() -
forceReturnValues
public boolean forceReturnValues() -
keySizeEstimate
Deprecated, for removal: This API element is subject to removal in a future version.Since 12.0, does nothing and will be removed in 15.0 -
marshaller
-
marshallerClass
-
nearCache
Deprecated, for removal: This API element is subject to removal in a future version. -
version
-
servers
-
clusters
-
socketTimeout
public int socketTimeout() -
security
-
tcpNoDelay
public boolean tcpNoDelay() -
tcpKeepAlive
public boolean tcpKeepAlive() -
valueSizeEstimate
Deprecated, for removal: This API element is subject to removal in a future version.Since 12.0, does nothing and will be removed in 15.0 -
maxRetries
public int maxRetries() -
serialWhitelist
Deprecated, for removal: This API element is subject to removal in a future version.UseserialAllowList()instead. To be removed in 14.0. -
serialAllowList
-
getClassWhiteList
Deprecated, for removal: This API element is subject to removal in a future version.UsegetClassAllowList()instead. To be removed in 14.0. -
getClassAllowList
-
batchSize
public int batchSize() -
remoteCaches
-
addRemoteCache
public RemoteCacheConfiguration addRemoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer) Create a newRemoteCacheConfiguration. This can be used to create additional configurations after aRemoteCacheManagerhas been initialized.- Parameters:
name- the name of the cache configuration to createbuilderConsumer- aConsumerwhich receives aRemoteCacheConfigurationBuilderand can apply the necessary configurations on it.- Returns:
- the
RemoteCacheConfiguration - Throws:
IllegalArgumentException- if a cache configuration with the same name already exists
-
removeRemoteCache
Remove aRemoteCacheConfigurationfrom thisConfiguration. If the cache configuration doesn't exist, this method has no effect.- Parameters:
name- the name of theRemoteCacheConfigurationto remove.
-
statistics
-
transaction
Deprecated, for removal: This API element is subject to removal in a future version.since 12.0. To be removed in Infinispan 14. -
transactionTimeout
public long transactionTimeout() -
features
-
getContextInitializers
-
transportFactory
-
tracingPropagationEnabled
public boolean tracingPropagationEnabled()OpenTelemetry tracing propagation will be activated if this property is true and if the OpenTelemetry API jar is detected on the classpath. By default, the property is true.- Returns:
- if the tracing propagation is enabled
-
toString
-
properties
-
getClassAllowList()instead.