Package org.apache.cassandra.cache
Class AutoSavingCache.Writer
- java.lang.Object
-
- org.apache.cassandra.db.compaction.CompactionInfo.Holder
-
- org.apache.cassandra.cache.AutoSavingCache.Writer
-
- Enclosing class:
- AutoSavingCache<K extends CacheKey,V>
public class AutoSavingCache.Writer extends CompactionInfo.Holder
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Writer(int keysToSave)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheService.CacheType
cacheType()
CompactionInfo
getCompactionInfo()
boolean
isGlobal()
if this compaction involves several/all tables we can safely check globalCompactionsPaused in isStopRequested() belowvoid
saveCache()
-
Methods inherited from class org.apache.cassandra.db.compaction.CompactionInfo.Holder
isStopRequested, stop
-
-
-
-
Method Detail
-
cacheType
public CacheService.CacheType cacheType()
-
getCompactionInfo
public CompactionInfo getCompactionInfo()
- Specified by:
getCompactionInfo
in classCompactionInfo.Holder
-
saveCache
public void saveCache()
-
isGlobal
public boolean isGlobal()
Description copied from class:CompactionInfo.Holder
if this compaction involves several/all tables we can safely check globalCompactionsPaused in isStopRequested() below- Specified by:
isGlobal
in classCompactionInfo.Holder
-
-