public class Configuration extends Object
Constructor and Description |
---|
Configuration(ExecutorFactoryConfiguration asyncExecutorFactory,
Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory,
ClassLoader classLoader,
ClientIntelligence clientIntelligence,
ConnectionPoolConfiguration connectionPool,
int connectionTimeout,
Class<? extends 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> serialWhitelist,
int batchSize,
TransactionConfiguration transaction,
StatisticsConfiguration statistics,
Features features,
List<org.infinispan.protostream.SerializationContextInitializer> contextInitializers,
Map<String,RemoteCacheConfiguration> remoteCaches) |
public Configuration(ExecutorFactoryConfiguration asyncExecutorFactory, Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory, ClassLoader classLoader, ClientIntelligence clientIntelligence, ConnectionPoolConfiguration connectionPool, int connectionTimeout, Class<? extends 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> serialWhitelist, int batchSize, TransactionConfiguration transaction, StatisticsConfiguration statistics, Features features, List<org.infinispan.protostream.SerializationContextInitializer> contextInitializers, Map<String,RemoteCacheConfiguration> remoteCaches)
public ExecutorFactoryConfiguration asyncExecutorFactory()
public Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory()
@Deprecated public ClassLoader classLoader()
public ClientIntelligence clientIntelligence()
public ConnectionPoolConfiguration connectionPool()
public int connectionTimeout()
public Class<? extends ConsistentHash>[] consistentHashImpl()
public Class<? extends ConsistentHash> consistentHashImpl(int version)
public boolean forceReturnValues()
public int keySizeEstimate()
public Marshaller marshaller()
public Class<? extends Marshaller> marshallerClass()
@Deprecated public NearCacheConfiguration nearCache()
public ProtocolVersion version()
public List<ServerConfiguration> servers()
public List<ClusterConfiguration> clusters()
public int socketTimeout()
public SecurityConfiguration security()
public boolean tcpNoDelay()
public boolean tcpKeepAlive()
public int valueSizeEstimate()
public int maxRetries()
public ClassWhiteList getClassWhiteList()
public int batchSize()
public Map<String,RemoteCacheConfiguration> remoteCaches()
public RemoteCacheConfiguration addRemoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer)
RemoteCacheConfiguration
. This can be used to create additional configurations after a RemoteCacheManager
has been initialized.name
- the name of the cache configuration to createbuilderConsumer
- a Consumer
which receives a RemoteCacheConfigurationBuilder
and can apply the necessary configurations on it.RemoteCacheConfiguration
IllegalArgumentException
- if a cache configuration with the same name already existspublic void removeRemoteCache(String name)
RemoteCacheConfiguration
from this Configuration
. If the cache configuration doesn't exist, this method has no effect.name
- the name of the RemoteCacheConfiguration
to remove.public StatisticsConfiguration statistics()
public TransactionConfiguration transaction()
public Features features()
public List<org.infinispan.protostream.SerializationContextInitializer> getContextInitializers()
public Properties properties()
Copyright © 2021 JBoss by Red Hat. All rights reserved.