Package org.apache.cassandra.service
Interface CacheServiceMBean
- All Known Implementing Classes:
CacheService
public interface CacheServiceMBean
-
Method Summary
Modifier and TypeMethodDescriptionintintintintintintvoidvoidinvalidate the key cache; for use after invalidating row cachevoidinvalidate the row cache; for use after bulk loading via BinaryMemtablevoidsave row and key cachesvoidsetCounterCacheCapacityInMB(long capacity) voidsetCounterCacheKeysToSave(int cckts) voidsetCounterCacheSavePeriodInSeconds(int ccspis) voidsetKeyCacheCapacityInMB(long capacity) voidsetKeyCacheKeysToSave(int kckts) voidsetKeyCacheSavePeriodInSeconds(int kcspis) voidsetRowCacheCapacityInMB(long capacity) voidsetRowCacheKeysToSave(int rckts) voidsetRowCacheSavePeriodInSeconds(int rcspis)
-
Method Details
-
getRowCacheSavePeriodInSeconds
int getRowCacheSavePeriodInSeconds() -
setRowCacheSavePeriodInSeconds
void setRowCacheSavePeriodInSeconds(int rcspis) -
getKeyCacheSavePeriodInSeconds
int getKeyCacheSavePeriodInSeconds() -
setKeyCacheSavePeriodInSeconds
void setKeyCacheSavePeriodInSeconds(int kcspis) -
getCounterCacheSavePeriodInSeconds
int getCounterCacheSavePeriodInSeconds() -
setCounterCacheSavePeriodInSeconds
void setCounterCacheSavePeriodInSeconds(int ccspis) -
getRowCacheKeysToSave
int getRowCacheKeysToSave() -
setRowCacheKeysToSave
void setRowCacheKeysToSave(int rckts) -
getKeyCacheKeysToSave
int getKeyCacheKeysToSave() -
setKeyCacheKeysToSave
void setKeyCacheKeysToSave(int kckts) -
getCounterCacheKeysToSave
int getCounterCacheKeysToSave() -
setCounterCacheKeysToSave
void setCounterCacheKeysToSave(int cckts) -
invalidateKeyCache
void invalidateKeyCache()invalidate the key cache; for use after invalidating row cache -
invalidateRowCache
void invalidateRowCache()invalidate the row cache; for use after bulk loading via BinaryMemtable -
invalidateCounterCache
void invalidateCounterCache() -
setRowCacheCapacityInMB
void setRowCacheCapacityInMB(long capacity) -
setKeyCacheCapacityInMB
void setKeyCacheCapacityInMB(long capacity) -
setCounterCacheCapacityInMB
void setCounterCacheCapacityInMB(long capacity) -
saveCaches
save row and key caches- Throws:
ExecutionException- when attempting to retrieve the result of a task that aborted by throwing an exceptionInterruptedException- when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity.
-