public class JmxSupport extends Object implements CacheLifeCycleListener, CacheManagerLifeCycleListener
Registering a name may fail because cache manager names may be identical in different class loaders.
| Constructor and Description |
|---|
JmxSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheCreated(org.cache2k.Cache c,
org.cache2k.configuration.Cache2kConfiguration cfg)
Register management bean for the cache.
|
void |
cacheDestroyed(org.cache2k.Cache c) |
void |
managerCreated(org.cache2k.CacheManager m) |
void |
managerDestroyed(org.cache2k.CacheManager m) |
public void cacheCreated(org.cache2k.Cache c,
org.cache2k.configuration.Cache2kConfiguration cfg)
Cache2kConfiguration.setDisableStatistics(boolean) this is registered
anyway since the cache size or the clear operation might be of interest.cacheCreated in interface CacheLifeCycleListenerpublic void cacheDestroyed(org.cache2k.Cache c)
cacheDestroyed in interface CacheLifeCycleListenerpublic void managerCreated(org.cache2k.CacheManager m)
managerCreated in interface CacheManagerLifeCycleListenerpublic void managerDestroyed(org.cache2k.CacheManager m)
managerDestroyed in interface CacheManagerLifeCycleListenercache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.