public class GridCacheClearAllRunnable<K,V> extends Object implements Runnable
GridCacheAdapter.clearAll() 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 GridLogger |
log
Logger.
|
protected GridCacheVersion |
obsoleteVer
Obsolete version.
|
protected int |
totalCnt
Mods count across all spawned clearAll 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<K,V> e)
Clear entry from cache.
|
int |
id() |
protected boolean |
owns(K 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 GridLogger 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 clearAll runnables.protected void clearEntry(GridCacheEntryEx<K,V> e)
e - Entry.protected boolean owns(K key)
key - Key.True in case this worker should process this key.public int id()
public int totalCount()
Copyright © 2014. All rights reserved.