Class L1ConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.L1ConfigurationBuilder
- All Implemented Interfaces:
Builder<L1Configuration>
,ClusteringConfigurationChildBuilder
,ConfigurationChildBuilder
Configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes,
this element is ignored.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
cleanupTaskFrequency
(long frequency) How often the L1 requestors map is cleaned up of stale itemscleanupTaskFrequency
(long frequencyMillis, TimeUnit unit) How often the L1 requestors map is cleaned up of stale itemscleanupTaskFrequency
(String frequency) Same ascleanupTaskFrequency(long)
but supporting time units.create()
Create the configuration beandisable()
enable()
enabled
(boolean enabled) encoding()
protected ConfigurationBuilder
protected ClusteringConfigurationBuilder
hash()
Allows fine-tuning of rehashing characteristics.indexing()
invalidationThreshold
(int invalidationThreshold) Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.l1()
Configures the L1 cache behavior in 'distributed' caches instances.lifespan
(long lifespan) Maximum lifespan of an entry placed in the L1 cache.Maximum lifespan of an entry placed in the L1 cache.Same aslifespan(long)
but supporting time unitslocking()
memory()
Configures how the cache will react to cluster partitions.query()
read
(L1Configuration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()
boolean
simpleCache
(boolean simpleCache) sites()
Configures how state is transferred when a new cache joins the cluster.template
(boolean template) toString()
tracing()
unsafe()
void
validate()
Validate the data in this builder before building the configuration beanvoid
validate
(GlobalConfiguration globalConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
aliases, build, clustering, encoding, expiration, indexing, invocationBatching, locking, memory, persistence, query, security, simpleCache, simpleCache, sites, statistics, template, tracing, transaction, unsafe
-
Field Details
-
builder
-
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<L1Configuration>
-
invalidationThreshold
Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.
By default multicast will be used.
If the threshold is set to -1, then unicasts will always be used. If the threshold is set to 0, then multicast will be always be used.
- Parameters:
invalidationThreshold
- the threshold over which to use a multicast
-
lifespan
Maximum lifespan of an entry placed in the L1 cache. -
lifespan
Same aslifespan(long)
but supporting time units -
lifespan
Maximum lifespan of an entry placed in the L1 cache. -
cleanupTaskFrequency
How often the L1 requestors map is cleaned up of stale items -
cleanupTaskFrequency
Same ascleanupTaskFrequency(long)
but supporting time units. -
cleanupTaskFrequency
How often the L1 requestors map is cleaned up of stale items -
enable
-
disable
-
enabled
-
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<L1Configuration>
-
validate
- Specified by:
validate
in interfaceConfigurationChildBuilder
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<L1Configuration>
- 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<L1Configuration>
- 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.
-
toString
-
hash
Description copied from interface:ClusteringConfigurationChildBuilder
Allows fine-tuning of rehashing characteristics. Must only used with 'distributed' cache mode.- Specified by:
hash
in interfaceClusteringConfigurationChildBuilder
-
l1
Description copied from interface:ClusteringConfigurationChildBuilder
Configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes, this element is ignored.- Specified by:
l1
in interfaceClusteringConfigurationChildBuilder
-
stateTransfer
Description copied from interface:ClusteringConfigurationChildBuilder
Configures how state is transferred when a new cache joins the cluster. Used with distribution and replication clustered modes.- Specified by:
stateTransfer
in interfaceClusteringConfigurationChildBuilder
-
partitionHandling
Description copied from interface:ClusteringConfigurationChildBuilder
Configures how the cache will react to cluster partitions.- Specified by:
partitionHandling
in interfaceClusteringConfigurationChildBuilder
-
getClusteringBuilder
-
aliases
- Specified by:
aliases
in interfaceConfigurationChildBuilder
-
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
tracing
- Specified by:
tracing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-