public class ExpirationConfiguration extends java.lang.Object implements Matchable<ExpirationConfiguration>
| Modifier and Type | Field and Description |
|---|---|
static AttributeDefinition<java.lang.Long> |
LIFESPAN |
static AttributeDefinition<java.lang.Long> |
MAX_IDLE |
static AttributeDefinition<java.lang.Boolean> |
REAPER_ENABLED |
static AttributeDefinition<java.lang.Long> |
WAKEUP_INTERVAL |
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
attributes() |
boolean |
equals(java.lang.Object obj) |
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.
|
public static final AttributeDefinition<java.lang.Long> LIFESPAN
public static final AttributeDefinition<java.lang.Long> MAX_IDLE
public static final AttributeDefinition<java.lang.Boolean> REAPER_ENABLED
public static final AttributeDefinition<java.lang.Long> WAKEUP_INTERVAL
public long lifespan()
public long maxIdle()
public boolean reaperEnabled()
public long wakeUpInterval()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic AttributeSet attributes()