Class ManagedCacheSupport
java.lang.Object
com.atlassian.bamboo.cluster.atlassiancache.ManagedCacheSupport
- All Implemented Interfaces:
com.atlassian.cache.ManagedCache
- Direct Known Subclasses:
GrpcBackedCache,GrpcBackedCachedReference
public abstract class ManagedCacheSupport
extends Object
implements com.atlassian.cache.ManagedCache
Common implementation of
ManagedCache for gRPC backed caches.- Since:
- 9.5
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedManagedCacheSupport(String name, GrpcBackedCacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescription@Nullable Long@Nullable Long@Nullable Integerprotected @NotNull Optional<com.atlassian.cache.CacheSettings> @NotNull StringgetName()booleanbooleanisLocal()booleanbooleanbooleanvoidsetStatistics(boolean enabled) booleanupdateExpireAfterAccess(long expireAfter, @NotNull TimeUnit timeUnit) booleanupdateExpireAfterWrite(long expireAfter, @NotNull TimeUnit timeUnit) booleanupdateMaxEntries(int newValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.cache.ManagedCache
clear, getCacheCollector
-
Field Details
-
name
-
cacheManager
-
-
Constructor Details
-
ManagedCacheSupport
-
-
Method Details
-
currentExpireAfterAccessMillis
- Specified by:
currentExpireAfterAccessMillisin interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterWriteMillis
- Specified by:
currentExpireAfterWriteMillisin interfacecom.atlassian.cache.ManagedCache
-
currentMaxEntries
- Specified by:
currentMaxEntriesin interfacecom.atlassian.cache.ManagedCache
-
isReplicateViaCopy
public boolean isReplicateViaCopy()- Specified by:
isReplicateViaCopyin interfacecom.atlassian.cache.ManagedCache
-
getName
- Specified by:
getNamein interfacecom.atlassian.cache.ManagedCache
-
isLocal
public boolean isLocal()- Specified by:
isLocalin interfacecom.atlassian.cache.ManagedCache
-
isReplicateAsynchronously
public boolean isReplicateAsynchronously()- Specified by:
isReplicateAsynchronouslyin interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterAccess
- Specified by:
updateExpireAfterAccessin interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterWrite
- Specified by:
updateExpireAfterWritein interfacecom.atlassian.cache.ManagedCache
-
updateMaxEntries
public boolean updateMaxEntries(int newValue) - Specified by:
updateMaxEntriesin interfacecom.atlassian.cache.ManagedCache
-
getStatistics
@NotNull public @NotNull SortedMap<com.atlassian.cache.CacheStatisticsKey,Supplier<Long>> getStatistics()- Specified by:
getStatisticsin interfacecom.atlassian.cache.ManagedCache
-
isStatisticsEnabled
public boolean isStatisticsEnabled()- Specified by:
isStatisticsEnabledin interfacecom.atlassian.cache.ManagedCache
-
setStatistics
public void setStatistics(boolean enabled) - Specified by:
setStatisticsin interfacecom.atlassian.cache.ManagedCache
-
isFlushable
public boolean isFlushable()- Specified by:
isFlushablein interfacecom.atlassian.cache.ManagedCache
-
getCacheSettings
-