public class GridCacheClearAllRunnable<K,V> extends Object implements Runnable
IgniteInternalCache.clearLocally(boolean, boolean, boolean) 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 boolean |
readers
Whether to clear readers.
|
protected int |
totalCnt
Mods count across all spawned clearLocally runnables.
|
| Constructor and Description |
|---|
GridCacheClearAllRunnable(GridCacheAdapter<K,V> cache,
GridCacheVersion obsoleteVer,
int id,
int totalCnt,
boolean readers)
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.
|
boolean |
readers() |
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 boolean readers
protected final GridCacheContext<K,V> ctx
protected final IgniteLogger log
public GridCacheClearAllRunnable(GridCacheAdapter<K,V> cache, GridCacheVersion obsoleteVer, int id, int totalCnt, boolean readers)
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()
public boolean readers()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020