Package jetbrains.buildServer.util.cache
Class EhCacheUtil
- java.lang.Object
-
- jetbrains.buildServer.util.cache.EhCacheUtilBase
-
- jetbrains.buildServer.util.cache.EhCacheUtil
-
- All Implemented Interfaces:
EhCacheHelper
public class EhCacheUtil extends EhCacheUtilBase
A helper class designed to simplify the work with EhCache library. See the doc for more details. Typical usage:public MyBean { private Cache myCache; public MyBean(@NotNull EhCacheUtil cacheUtil) { myCache = cacheUtil.createCache("my-cache-name"); } ... }
Note: if your cache is not eternal (in ehcache configuration), it will be cleaned up if requested from admin interface or API. Default cache not eternal.- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.util.cache.EhCacheUtilBase
COMPACT_ENABLED_PROPERTY, COMPACT_MIN_PERIOD_PROPERTY, COMPACT_TRIGGER_SIZE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description EhCacheUtil(ServerPaths serverPaths, ResetCacheRegister register)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setEventDispatcher(EventDispatcher<BuildServerListener> eventDispatcher)
-
Methods inherited from class jetbrains.buildServer.util.cache.EhCacheUtilBase
createCache, createCache, createInMemoryCache, destroyCache, disposeCache, getCacheManager, shutdownCaches
-
-
-
-
Constructor Detail
-
EhCacheUtil
public EhCacheUtil(@NotNull ServerPaths serverPaths, @NotNull ResetCacheRegister register)
-
-
Method Detail
-
setEventDispatcher
public void setEventDispatcher(@NotNull EventDispatcher<BuildServerListener> eventDispatcher)
-
-