Class NearCacheConfigurationBuilder
java.lang.Object
org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
org.infinispan.client.hotrod.configuration.NearCacheConfigurationBuilder
- All Implemented Interfaces:
ConfigurationChildBuilder,Builder<NearCacheConfiguration>
public class NearCacheConfigurationBuilder
extends AbstractConfigurationChildBuilder
implements Builder<NearCacheConfiguration>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbloomFilter(boolean enable) Specifies whether bloom filter should be used for near cache to limit the number of write notifications for unrelated keys.cacheNamePattern(String pattern) Deprecated, for removal: This API element is subject to removal in a future version.cacheNamePattern(Pattern pattern) Deprecated, for removal: This API element is subject to removal in a future version.useRemoteCacheConfigurationBuilder.nearCacheMode(NearCacheMode)to enable near-caching per-cachecreate()Create the configuration beanmaxEntries(int maxEntries) Specifies the maximum number of entries that will be held in the near cache.mode(NearCacheMode mode) Specifies the near caching mode.nearCacheFactory(NearCacheFactory factory) Specifies aNearCacheFactorywhich is responsible for creatingNearCacheinstances.Builder<?> read(NearCacheConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.voidvalidate()Validate the data in this builder before building the configuration beanwithProperties(Properties properties) Configures this builder using the specified properties.Methods inherited from class org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
addCluster, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialAllowList, addJavaSerialWhiteList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, dnsResolverMaxTTL, dnsResolverMinTTL, dnsResolverNegativeTTL, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, remoteCache, security, serverFailureTimeout, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transaction, transactionTimeout, transportFactory, uri, uri, valueSizeEstimate, version, withMetricRegistry
-
Constructor Details
-
NearCacheConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<NearCacheConfiguration>
-
maxEntries
Specifies the maximum number of entries that will be held in the near cache.- Parameters:
maxEntries- maximum entries in the near cache.- Returns:
- an instance of the builder
-
bloomFilter
Specifies whether bloom filter should be used for near cache to limit the number of write notifications for unrelated keys.- Parameters:
enable- whether to enable bloom filter- Returns:
- an instance of this builder
-
mode
Specifies the near caching mode. SeeNearCacheModefor details on the available modes.- Parameters:
mode- one ofNearCacheMode- Returns:
- an instance of the builder
-
cacheNamePattern
@Deprecated(forRemoval=true, since="11.0") public NearCacheConfigurationBuilder cacheNamePattern(String pattern) Deprecated, for removal: This API element is subject to removal in a future version.useRemoteCacheConfigurationBuilder.nearCacheMode(NearCacheMode)to enable near-caching per-cacheSpecifies a cache name pattern (in the form of a regular expression) that matches all cache names for which near caching should be enabled. See thePatternsyntax for details on the format.- Parameters:
pattern- a regular expression.- Returns:
- an instance of the builder
-
cacheNamePattern
@Deprecated(forRemoval=true, since="11.0") public NearCacheConfigurationBuilder cacheNamePattern(Pattern pattern) Deprecated, for removal: This API element is subject to removal in a future version.useRemoteCacheConfigurationBuilder.nearCacheMode(NearCacheMode)to enable near-caching per-cacheSpecifies a cache name pattern that matches all cache names for which near caching should be enabled.- Parameters:
pattern- aPattern- Returns:
- an instance of the builder
-
nearCacheFactory
Specifies aNearCacheFactorywhich is responsible for creatingNearCacheinstances.- Parameters:
factory- aNearCacheFactory- Returns:
- an instance of the builder
-
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<NearCacheConfiguration>
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<NearCacheConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<NearCacheConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
withProperties
Description copied from interface:ConfigurationChildBuilderConfigures this builder using the specified properties. SeeConfigurationBuilderfor a list.- Specified by:
withPropertiesin interfaceConfigurationChildBuilder- Overrides:
withPropertiesin classAbstractConfigurationChildBuilder
-
RemoteCacheConfigurationBuilder.nearCacheMode(NearCacheMode)to enable near-caching per-cache