|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - The Evictable item type, usually the key type of a Mappublic interface Evictable<K>
The Evictor works against this interface to trigger local and orphan eviction. The Evictable implementation
is most commonly a Map where the parameter here is the key type. It could theoretically also work on a partial List
or array where K is the item type.
| Method Summary | |
|---|---|
void |
evictExpiredLocalElements()
Trigger to walk through the local elements, look for expired elements, and evict them. |
void |
evictOrphanElements(ClusterInfo clusterInfo)
Trigger to walk through the specified set of orphaned elements, check whether they have expired, and evict them from the store. |
EvictionStatistics |
getStatistics()
Retrieve the statistics for the current JVM. |
boolean |
isStatisticsEnabled()
Returns whether statistics are enabled. |
void |
setStatisticsEnabled(boolean enabled)
Toggle statistics being enabled or not. |
| Method Detail |
|---|
void evictExpiredLocalElements()
void evictOrphanElements(ClusterInfo clusterInfo)
clusterInfo - The Terracotta cluster info which can be used to obtain the orphaned element listvoid setStatisticsEnabled(boolean enabled)
enabled - true to enable statistics; and false to disable themboolean isStatisticsEnabled()
true when statistics are enabled; and false otherwiseEvictionStatistics getStatistics()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||