Class GridCacheClearAllRunnable<K,​V>

    • Field Detail

      • id

        protected final int id
        Mod for the given runnable.
      • totalCnt

        protected final int totalCnt
        Mods count across all spawned clearLocally runnables.
      • readers

        protected final boolean readers
        Whether to clear readers.
    • Constructor Detail

      • GridCacheClearAllRunnable

        public GridCacheClearAllRunnable​(GridCacheAdapter<K,​V> cache,
                                         GridCacheVersion obsoleteVer,
                                         int id,
                                         int totalCnt,
                                         boolean readers)
        Constructor.
        Parameters:
        cache - Cache to be cleared.
        obsoleteVer - Obsolete version.
        id - Mod for the given runnable.
        totalCnt - Mods count across all spawned clearLocally runnables.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • clearEntry

        protected void clearEntry​(GridCacheEntryEx e)
        Clear entry from cache.
        Parameters:
        e - Entry.
      • owns

        protected boolean owns​(KeyCacheObject key)
        Check whether this worker owns particular key.
        Parameters:
        key - Key.
        Returns:
        True in case this worker should process this key.
      • id

        public int id()
        Returns:
        ID for the given runnable.
      • totalCount

        public int totalCount()
        Returns:
        Total count across all spawned clearLocally runnables.
      • readers

        public boolean readers()
        Returns:
        Whether to clean readers.