Class Configuration
- java.lang.Object
-
- org.infinispan.client.hotrod.configuration.Configuration
-
public class Configuration extends Object
Configuration.- Since:
- 5.3
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
-
-
-
Constructor Detail
-
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 Detail
-
asyncExecutorFactory
public ExecutorFactoryConfiguration asyncExecutorFactory()
-
balancingStrategyFactory
public Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory()
-
classLoader
@Deprecated public ClassLoader classLoader()
Deprecated.
-
clientIntelligence
public ClientIntelligence clientIntelligence()
-
connectionPool
public ConnectionPoolConfiguration 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 public int keySizeEstimate()
Deprecated.Since 12.0, does nothing and will be removed in 15.0
-
marshaller
public Marshaller marshaller()
-
marshallerClass
public Class<? extends Marshaller> marshallerClass()
-
nearCache
@Deprecated public NearCacheConfiguration nearCache()
Deprecated.
-
version
public ProtocolVersion version()
-
servers
public List<ServerConfiguration> servers()
-
clusters
public List<ClusterConfiguration> clusters()
-
socketTimeout
public int socketTimeout()
-
security
public SecurityConfiguration security()
-
tcpNoDelay
public boolean tcpNoDelay()
-
tcpKeepAlive
public boolean tcpKeepAlive()
-
valueSizeEstimate
@Deprecated public int valueSizeEstimate()
Deprecated.Since 12.0, does nothing and will be removed in 15.0
-
maxRetries
public int maxRetries()
-
serialWhitelist
@Deprecated public List<String> serialWhitelist()
Deprecated.UseserialAllowList()
instead. To be removed in 14.0.
-
getClassWhiteList
@Deprecated public ClassAllowList getClassWhiteList()
Deprecated.UsegetClassAllowList()
instead. To be removed in 14.0.
-
getClassAllowList
public ClassAllowList getClassAllowList()
-
batchSize
public int batchSize()
-
remoteCaches
public Map<String,RemoteCacheConfiguration> 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
public void removeRemoteCache(String name)
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
public StatisticsConfiguration statistics()
-
transaction
@Deprecated public TransactionConfiguration transaction()
Deprecated.since 12.0. To be removed in Infinispan 14.
-
transactionTimeout
public long transactionTimeout()
-
features
public Features features()
-
getContextInitializers
public List<org.infinispan.protostream.SerializationContextInitializer> getContextInitializers()
-
transportFactory
public TransportFactory transportFactory()
-
toString
public String toString()
-
properties
public Properties properties()
-
-