Class CacheConfiguration
- java.lang.Object
-
- com.evolveum.midpoint.util.caching.CacheConfiguration
-
- All Implemented Interfaces:
DebugDumpable
public class CacheConfiguration extends Object implements DebugDumpable
This is a "compiled" configuration for a cache. It is usually created by composing cache profiles defined using common-3 schema. (Even if the schema itself is not available in this module.)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CacheConfiguration.CacheObjectTypeConfiguration
static class
CacheConfiguration.StatisticsLevel
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description CacheConfiguration()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Method Detail
-
supportsObjectType
public boolean supportsObjectType(Class<?> type)
-
getForObjectType
public CacheConfiguration.CacheObjectTypeConfiguration getForObjectType(Class<?> type)
-
isAvailable
public boolean isAvailable()
-
getMaxSize
public Integer getMaxSize()
-
setMaxSize
public void setMaxSize(Integer maxSize)
-
getTimeToLive
public Integer getTimeToLive()
-
setTimeToLive
public void setTimeToLive(Integer timeToLive)
-
getTraceMiss
public Boolean getTraceMiss()
-
setTraceMiss
public void setTraceMiss(Boolean traceMiss)
-
getTracePass
public Boolean getTracePass()
-
setTracePass
public void setTracePass(Boolean tracePass)
-
getStatisticsLevel
public CacheConfiguration.StatisticsLevel getStatisticsLevel()
-
setStatisticsLevel
public void setStatisticsLevel(CacheConfiguration.StatisticsLevel statisticsLevel)
-
getClusterwideInvalidation
public Boolean getClusterwideInvalidation()
-
setClusterwideInvalidation
public void setClusterwideInvalidation(Boolean clusterwideInvalidation)
-
getSafeRemoteInvalidation
public Boolean getSafeRemoteInvalidation()
-
setSafeRemoteInvalidation
public void setSafeRemoteInvalidation(Boolean safeRemoteInvalidation)
-
getObjectTypes
public Map<Class<?>,CacheConfiguration.CacheObjectTypeConfiguration> getObjectTypes()
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
getTraceMiss
public static boolean getTraceMiss(CacheConfiguration.CacheObjectTypeConfiguration typeConfig, CacheConfiguration cacheConfig)
-
getTracePass
public static boolean getTracePass(CacheConfiguration.CacheObjectTypeConfiguration typeConfig, CacheConfiguration cacheConfig)
-
getStatisticsLevel
public static CacheConfiguration.StatisticsLevel getStatisticsLevel(CacheConfiguration.CacheObjectTypeConfiguration typeConfig, CacheConfiguration config)
-
isClusterwideInvalidation
public boolean isClusterwideInvalidation(Class<?> type)
-
isSafeRemoteInvalidation
public boolean isSafeRemoteInvalidation(Class<?> type)
-
-