public class GridCacheClearAllRunnable<K,V> extends Object implements Runnable
GridCacheAdapter.clearLocally() routine.| Modifier and Type | Field and Description |
|---|---|
protected GridCacheAdapter<K,V> |
cache
Cache to be cleared.
|
protected GridCacheContext<K,V> |
ctx
Cache context.
|
protected int |
id
Mod for the given runnable.
|
protected IgniteLogger |
log
Logger.
|
protected GridCacheVersion |
obsoleteVer
Obsolete version.
|
protected int |
totalCnt
Mods count across all spawned clearLocally runnables.
|
| Constructor and Description |
|---|
GridCacheClearAllRunnable(GridCacheAdapter<K,V> cache,
GridCacheVersion obsoleteVer,
int id,
int totalCnt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearEntry(GridCacheEntryEx e)
Clear entry from cache.
|
int |
id() |
protected boolean |
owns(KeyCacheObject key)
Check whether this worker owns particular key.
|
void |
run() |
String |
toString() |
int |
totalCount() |
protected final GridCacheAdapter<K,V> cache
protected final GridCacheVersion obsoleteVer
protected final int id
protected final int totalCnt
protected final GridCacheContext<K,V> ctx
protected final IgniteLogger log
public GridCacheClearAllRunnable(GridCacheAdapter<K,V> cache, GridCacheVersion obsoleteVer, int id, int totalCnt)
cache - Cache to be cleared.obsoleteVer - Obsolete version.id - Mod for the given runnable.totalCnt - Mods count across all spawned clearLocally runnables.protected void clearEntry(GridCacheEntryEx e)
e - Entry.protected boolean owns(KeyCacheObject key)
key - Key.True in case this worker should process this key.public int id()
public int totalCount()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015