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.create()
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 aNearCacheFactory
which is responsible for creatingNearCache
instances.Builder
<?> read
(NearCacheConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.void
validate()
Validate the data in this builder before building the configuration beanMethods 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, withProperties
-
Constructor Details
-
NearCacheConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in 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. SeeNearCacheMode
for details on the available modes.- Parameters:
mode
- one ofNearCacheMode
- Returns:
- an instance of the builder
-
nearCacheFactory
Specifies aNearCacheFactory
which is responsible for creatingNearCache
instances.- Parameters:
factory
- aNearCacheFactory
- Returns:
- an instance of the builder
-
validate
public void validate()Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<NearCacheConfiguration>
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<NearCacheConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in 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.
-