| java.lang.Object com.tcclient.cache.CacheEntryInvalidator
CacheEntryInvalidator | class CacheEntryInvalidator (Code) | | The invalidator watches a portion of the CacheDataStore (a range of the submaps) and is run in a loop, periodically
running an eviction of all keys existent in this node. Remote keys are ignored to minimize faulting over the network.
Additionally, at the beginning of each run, the cache attempts to become the "global evictor". For each chunk of the
cache, only one of the local evictors in the cluster will become the global evictor. That thread is responsible for
both its own local eviction and also the global eviction. Global 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. This class should be completely local and no state should be
shared across the cluster. This is done by indicating transient on the array holding these objects in the
CacheDataStore.
|
evictLocalElements | protected void evictLocalElements(int index)(Code) | | Perform local eviction on this invalidator's portion of the store
|
postRun | public void postRun()(Code) | | |
run | public void run()(Code) | | Runnable run method
|
|
|