Class L1Configuration
- java.lang.Object
-
- org.infinispan.configuration.cache.L1Configuration
-
- All Implemented Interfaces:
Matchable<L1Configuration>
,BaseConfigurationInfo
,ConfigurationInfo
public class L1Configuration extends java.lang.Object implements Matchable<L1Configuration>, ConfigurationInfo
Configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes, this element is ignored.
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<java.lang.Long>
CLEANUP_TASK_FREQUENCY
static AttributeDefinition<java.lang.Boolean>
ENABLED
static AttributeDefinition<java.lang.Integer>
INVALIDATION_THRESHOLD
static AttributeDefinition<java.lang.Long>
LIFESPAN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeSet
attributes()
long
cleanupTaskFrequency()
Determines how often a cleanup thread runs to clean up an internal log of requestors for a specific keyboolean
enabled()
boolean
equals(java.lang.Object obj)
ElementDefinition
getElementDefinition()
int
hashCode()
int
invalidationThreshold()
Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.long
lifespan()
Maximum lifespan of an entry placed in the L1 cache.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
ENABLED
public static final AttributeDefinition<java.lang.Boolean> ENABLED
-
INVALIDATION_THRESHOLD
public static final AttributeDefinition<java.lang.Integer> INVALIDATION_THRESHOLD
-
LIFESPAN
public static final AttributeDefinition<java.lang.Long> LIFESPAN
-
CLEANUP_TASK_FREQUENCY
public static final AttributeDefinition<java.lang.Long> CLEANUP_TASK_FREQUENCY
-
-
Method Detail
-
enabled
public boolean enabled()
-
getElementDefinition
public ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
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.
-
attributes
public AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-