public class ExpirationConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
lifespan |
private long |
maxIdle |
private boolean |
reaperEnabled |
private long |
wakeUpInterval |
Constructor and Description |
---|
ExpirationConfiguration(long lifespan,
long maxIdle,
boolean reaperEnabled,
long wakeUpInterval) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
long |
lifespan()
Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in
milliseconds.
|
long |
maxIdle()
Maximum idle time a cache entry will be maintained in the cache, in milliseconds.
|
boolean |
reaperEnabled()
Determines whether the background reaper thread is enabled to test entries for expiration.
|
java.lang.String |
toString() |
long |
wakeUpInterval()
Interval (in milliseconds) between subsequent runs to purge expired entries from memory and
any cache stores.
|
private final long lifespan
private final long maxIdle
private final boolean reaperEnabled
private final long wakeUpInterval
ExpirationConfiguration(long lifespan, long maxIdle, boolean reaperEnabled, long wakeUpInterval)
public long lifespan()
public long maxIdle()
public boolean reaperEnabled()
public long wakeUpInterval()
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