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, 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) -
Method Summary
Modifier and TypeMethodDescriptionaddRemoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer) Create a newRemoteCacheConfiguration.intDeprecated.clusters()intClass<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash>[]Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash>consistentHashImpl(int version) features()booleanDeprecated.List<org.infinispan.protostream.SerializationContextInitializer>intDeprecated.Since 12.0, does nothing and will be removed in 15.0Class<? extends Marshaller>intDeprecated.voidremoveRemoteCache(String name) Remove aRemoteCacheConfigurationfrom thisConfiguration.security()Deprecated.UseserialAllowList()instead.servers()intbooleanbooleantoString()Deprecated.since 12.0.longintDeprecated.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, 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)
-
-
Method Details
-
asyncExecutorFactory
-
balancingStrategyFactory
-
classLoader
Deprecated. -
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) -
forceReturnValues
public boolean forceReturnValues() -
keySizeEstimate
Deprecated.Since 12.0, does nothing and will be removed in 15.0 -
marshaller
-
marshallerClass
-
nearCache
Deprecated. -
version
-
servers
-
clusters
-
socketTimeout
public int socketTimeout() -
security
-
tcpNoDelay
public boolean tcpNoDelay() -
tcpKeepAlive
public boolean tcpKeepAlive() -
valueSizeEstimate
Deprecated.Since 12.0, does nothing and will be removed in 15.0 -
maxRetries
public int maxRetries() -
serialWhitelist
Deprecated.UseserialAllowList()instead. To be removed in 14.0. -
serialAllowList
-
getClassWhiteList
Deprecated.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.since 12.0. To be removed in Infinispan 14. -
transactionTimeout
public long transactionTimeout() -
features
-
getContextInitializers
-
transportFactory
-
toString
-
properties
-
getClassAllowList()instead.