public class L1Configuration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
cleanupTaskFrequency |
private boolean |
enabled |
private int |
invalidationThreshold |
private long |
lifespan |
Constructor and Description |
---|
L1Configuration(boolean enabled,
int invalidationThreshold,
long lifespan,
boolean onRehash,
long cleanupTaskFrequency) |
Modifier and Type | Method and Description |
---|---|
long |
cleanupTaskFrequency()
Determines how often a cleanup thread runs to clean up an internal log of requestors for a specific key
|
boolean |
enabled() |
boolean |
equals(java.lang.Object o) |
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.
|
boolean |
onRehash()
If true, entries removed due to a rehash will be moved to L1 rather than being removed
altogether.
|
java.lang.String |
toString() |
private final boolean enabled
private final int invalidationThreshold
private final long lifespan
private final long cleanupTaskFrequency
L1Configuration(boolean enabled, int invalidationThreshold, long lifespan, boolean onRehash, long cleanupTaskFrequency)
public boolean enabled()
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.
public long cleanupTaskFrequency()
public long lifespan()
public boolean onRehash()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object