Package org.cache2k.jcache.provider
Class JCacheJmxSupport
- java.lang.Object
-
- org.cache2k.jcache.provider.JCacheJmxSupport
-
- All Implemented Interfaces:
EventListener
,org.cache2k.event.CacheClosedListener
,org.cache2k.event.CacheLifecycleListener
public class JCacheJmxSupport extends Object implements org.cache2k.event.CacheClosedListener
- Author:
- Jens Wilke
-
-
Field Summary
Fields Modifier and Type Field Description static JCacheJmxSupport
SINGLETON
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createJmxObjectName(org.cache2k.Cache cache)
String
createStatisticsObjectName(org.cache2k.Cache cache)
void
disableJmx(org.cache2k.Cache c)
void
disableStatistics(org.cache2k.Cache c)
void
enableJmx(org.cache2k.Cache c, javax.cache.Cache ca)
void
enableStatistics(JCacheAdapter c)
@Nullable CompletableFuture<Void>
onCacheClosed(org.cache2k.Cache cache)
static String
sanitizeName(String string)
Filter illegal chars, same rule as in TCK or RI?
-
-
-
Field Detail
-
SINGLETON
public static final JCacheJmxSupport SINGLETON
-
-
Method Detail
-
onCacheClosed
@Nullable public @Nullable CompletableFuture<Void> onCacheClosed(org.cache2k.Cache cache)
- Specified by:
onCacheClosed
in interfaceorg.cache2k.event.CacheClosedListener
-
enableStatistics
public void enableStatistics(JCacheAdapter c)
-
disableStatistics
public void disableStatistics(org.cache2k.Cache c)
-
enableJmx
public void enableJmx(org.cache2k.Cache c, javax.cache.Cache ca)
-
disableJmx
public void disableJmx(org.cache2k.Cache c)
-
createStatisticsObjectName
public String createStatisticsObjectName(org.cache2k.Cache cache)
-
createJmxObjectName
public String createJmxObjectName(org.cache2k.Cache cache)
-
-