Class L1Configuration
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<L1Configuration>
org.infinispan.configuration.cache.L1Configuration
- All Implemented Interfaces:
Matchable<L1Configuration>, Updatable<L1Configuration>
Configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes, this element is
ignored.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeDefinition<TimeQuantity> static final AttributeDefinition<Boolean> static final AttributeDefinition<Integer> static final AttributeDefinition<TimeQuantity> Fields inherited from class ConfigurationElement
attributes, CHILDLESS, children, element, repeated -
Method Summary
Modifier and TypeMethodDescriptionlongDetermines how often a cleanup thread runs to clean up an internal log of requestors for a specific keybooleanenabled()intDetermines whether a multicast or a web of unicasts are used when performing L1 invalidations.longlifespan()Maximum lifespan of an entry placed in the L1 cache.Methods inherited from class ConfigurationElement
attributes, child, children, children, elementName, equals, findAttribute, hashCode, isModified, list, matches, toString, update, validateUpdate, write
-
Field Details
-
ENABLED
-
INVALIDATION_THRESHOLD
-
LIFESPAN
-
CLEANUP_TASK_FREQUENCY
-
-
Method Details
-
enabled
public boolean enabled() -
invalidationThreshold
public int 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.
-
cleanupTaskFrequency
public long cleanupTaskFrequency()Determines how often a cleanup thread runs to clean up an internal log of requestors for a specific key -
lifespan
public long lifespan()Maximum lifespan of an entry placed in the L1 cache. Default 10 minutes.
-