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
Constructors Modifier Constructor Description protected
NearCacheConfigurationBuilder(ConfigurationBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NearCacheConfigurationBuilder
cacheNamePattern(String pattern)
Deprecated.useRemoteCacheConfigurationBuilder.nearCacheMode(NearCacheMode)
to enable near-caching per-cacheNearCacheConfigurationBuilder
cacheNamePattern(Pattern pattern)
Deprecated.useRemoteCacheConfigurationBuilder.nearCacheMode(NearCacheMode)
to enable near-caching per-cacheNearCacheConfiguration
create()
Create the configuration beanNearCacheConfigurationBuilder
maxEntries(int maxEntries)
Specifies the maximum number of entries that will be held in the near cache.NearCacheConfigurationBuilder
mode(NearCacheMode mode)
Specifies the near caching mode.Builder<?>
read(NearCacheConfiguration template)
Reads the configuration from an already created configuration bean into this builder.void
validate()
Validate the data in this builder before building the configuration beanConfigurationBuilder
withProperties(Properties properties)
Configures this builder using the specified properties.-
Methods inherited from class org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
addCluster, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialWhiteList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, classLoader, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, protocolVersion, remoteCache, security, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transaction, valueSizeEstimate, version
-
-
-
-
Constructor Detail
-
NearCacheConfigurationBuilder
protected NearCacheConfigurationBuilder(ConfigurationBuilder builder)
-
-
Method Detail
-
maxEntries
public NearCacheConfigurationBuilder maxEntries(int 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
-
mode
public NearCacheConfigurationBuilder mode(NearCacheMode mode)
Specifies the near caching mode. SeeNearCacheMode
for details on the available modes.- Parameters:
mode
- one ofNearCacheMode
- Returns:
- an instance of the builder
-
cacheNamePattern
@Deprecated public NearCacheConfigurationBuilder cacheNamePattern(String pattern)
Deprecated.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 thePattern
syntax for details on the format.- Parameters:
pattern
- a regular expression.- Returns:
- an instance of the builder
-
cacheNamePattern
@Deprecated public NearCacheConfigurationBuilder cacheNamePattern(Pattern pattern)
Deprecated.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
-
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
public NearCacheConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<NearCacheConfiguration>
- Returns:
-
read
public Builder<?> read(NearCacheConfiguration template)
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.
-
withProperties
public ConfigurationBuilder withProperties(Properties properties)
Description copied from interface:ConfigurationChildBuilder
Configures this builder using the specified properties. SeeConfigurationBuilder
for a list.- Specified by:
withProperties
in interfaceConfigurationChildBuilder
- Overrides:
withProperties
in classAbstractConfigurationChildBuilder
-
-