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
.int
Deprecated.clusters()
int
Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash>[]
Class<? extends org.infinispan.client.hotrod.impl.consistenthash.ConsistentHash>
consistentHashImpl
(int version) features()
boolean
Deprecated.List<org.infinispan.protostream.SerializationContextInitializer>
int
Deprecated.Since 12.0, does nothing and will be removed in 15.0Class<? extends Marshaller>
int
Deprecated.void
removeRemoteCache
(String name) Remove aRemoteCacheConfiguration
from thisConfiguration
.security()
Deprecated.UseserialAllowList()
instead.servers()
int
boolean
boolean
toString()
Deprecated.since 12.0.long
int
Deprecated.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 aRemoteCacheManager
has been initialized.- Parameters:
name
- the name of the cache configuration to createbuilderConsumer
- aConsumer
which receives aRemoteCacheConfigurationBuilder
and can apply the necessary configurations on it.- Returns:
- the
RemoteCacheConfiguration
- Throws:
IllegalArgumentException
- if a cache configuration with the same name already exists
-
removeRemoteCache
Remove aRemoteCacheConfiguration
from thisConfiguration
. If the cache configuration doesn't exist, this method has no effect.- Parameters:
name
- the name of theRemoteCacheConfiguration
to remove.
-
statistics
-
transaction
Deprecated.since 12.0. To be removed in Infinispan 14. -
transactionTimeout
public long transactionTimeout() -
features
-
getContextInitializers
-
transportFactory
-
toString
-
properties
-
getClassAllowList()
instead.