|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.cache.evictor.OrphanEvictionListener<K>
public class OrphanEvictionListener<K>
At the beginning of each run, the cache attempts to become the "orphan evictor". For each chunk of the cache, only one of the local evictors in the cluster will become the orphan evictor. That thread is responsible for both its own local eviction and also the orphan eviction. Orphan eviction entails checking "orphan" keys (those not currently faulted into any node's cache) for eviction. The process of doing this will cause those keys to be loaded into this node such that they are no longer orphans.
| Constructor Summary | |
|---|---|
OrphanEvictionListener(CacheConfig config,
Evictable<K> store,
EvictorLock orphanEvictorLock)
Construct an orphan eviction listener with clustered state |
|
| Method Summary | |
|---|---|
void |
endLocalEviction()
Perform orphan eviction |
void |
onShutdown()
On shutdown, release the orphan evictor lock so it can be reobtained by a later evictor. |
void |
startLocalEviction()
Attempt to obtain orphan evictor write lock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrphanEvictionListener(CacheConfig config,
Evictable<K> store,
EvictorLock orphanEvictorLock)
config - The clustered configuration of the orphan distributed map and orphan evictorstore - The clustered store to evictorphanEvictorLock - The clustered lock that is used as a token to indicate the elected orphan evictor| Method Detail |
|---|
public void startLocalEviction()
startLocalEviction in interface EvictionListenerpublic void endLocalEviction()
endLocalEviction in interface EvictionListenerpublic void onShutdown()
onShutdown in interface EvictionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||