Class JCacheConfigMXBeanImpl
java.lang.Object
com.loomcache.server.jcache.JCacheConfigMXBeanImpl
- All Implemented Interfaces:
JCacheConfigMXBean
Thread-safe implementation of
JCacheConfigMXBean backed by a
LoomJCache and its runtime management flags.- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionJCacheConfigMXBeanImpl(LoomJCache<?, ?> cache) Create a configuration MXBean backed by the given cache config.JCacheConfigMXBeanImpl(LoomJCacheConfig<?, ?> config) Create a configuration MXBean backed by a static config snapshot. -
Method Summary
Modifier and TypeMethodDescriptionThe key type name (always "java.lang.Object" for untyped caches).The value type name (always "java.lang.Object" for untyped caches).booleanWhether management (this MXBean) is enabled.booleanWhether read-through caching is enabled.booleanWhether statistics collection is enabled.booleanWhether the cache stores entries by value (copy) rather than by reference.booleanWhether write-through caching is enabled.
-
Constructor Details
-
JCacheConfigMXBeanImpl
Create a configuration MXBean backed by the given cache config.- Parameters:
cache- the cache owning this MXBean (must not be null)
-
JCacheConfigMXBeanImpl
Create a configuration MXBean backed by a static config snapshot.- Parameters:
config- the immutable cache configuration (must not be null)
-
-
Method Details
-
isStoreByValue
public boolean isStoreByValue()Description copied from interface:JCacheConfigMXBeanWhether the cache stores entries by value (copy) rather than by reference.- Specified by:
isStoreByValuein interfaceJCacheConfigMXBean
-
isManagementEnabled
public boolean isManagementEnabled()Description copied from interface:JCacheConfigMXBeanWhether management (this MXBean) is enabled.- Specified by:
isManagementEnabledin interfaceJCacheConfigMXBean
-
isStatisticsEnabled
public boolean isStatisticsEnabled()Description copied from interface:JCacheConfigMXBeanWhether statistics collection is enabled.- Specified by:
isStatisticsEnabledin interfaceJCacheConfigMXBean
-
isReadThrough
public boolean isReadThrough()Description copied from interface:JCacheConfigMXBeanWhether read-through caching is enabled.- Specified by:
isReadThroughin interfaceJCacheConfigMXBean
-
isWriteThrough
public boolean isWriteThrough()Description copied from interface:JCacheConfigMXBeanWhether write-through caching is enabled.- Specified by:
isWriteThroughin interfaceJCacheConfigMXBean
-
getKeyType
Description copied from interface:JCacheConfigMXBeanThe key type name (always "java.lang.Object" for untyped caches).- Specified by:
getKeyTypein interfaceJCacheConfigMXBean
-
getValueType
Description copied from interface:JCacheConfigMXBeanThe value type name (always "java.lang.Object" for untyped caches).- Specified by:
getValueTypein interfaceJCacheConfigMXBean
-