|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.cache.evictor.Evictor<K>
public class Evictor<K>
The evictor watches the Evictable and is run in a loop, periodically running an eviction of all keys existent
locally in this node.
| Constructor Summary | |
|---|---|
Evictor(Evictable<K> store)
Construct evictor with the evictable store to evict on. |
|
Evictor(Evictable<K> store,
EvictionListener evictionListener)
Construct evictor with the evictable store to evict on. |
|
| Method Summary | |
|---|---|
void |
postRun()
Stop running - call lifecycle event |
void |
run()
Run evictor run! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Evictor(Evictable<K> store)
NullEvictionListener is used - this listener does not do orphan eviction.
store - The evictable collection
public Evictor(Evictable<K> store,
EvictionListener evictionListener)
store - The evictable storeevictionListener - The eviction listener| Method Detail |
|---|
public void run()
RuntimeException - if an error occurspublic void postRun()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||