Class EhBlockingCache
java.lang.Object
org.mybatis.caches.ehcache.AbstractEhcacheCache
org.mybatis.caches.ehcache.EhBlockingCache
- All Implemented Interfaces:
org.apache.ibatis.cache.Cache
Cache implementation backed by Ehcache 3 that provides basic blocking semantics.
In Ehcache 2 this class used BlockingCache to acquire per-key locks and prevent cache stampedes. Ehcache 3
does not provide an equivalent decorator, so blocking must be provided by the caller (e.g. by wrapping this cache
with BlockingCache).
- Author:
- Iwao AVE!
-
Field Summary
Fields inherited from class AbstractEhcacheCache
cache, CACHE_MANAGER, id, maxBytesLocalDisk, maxEntriesLocalDisk, maxEntriesLocalHeap, memoryStoreEvictionPolicy, timeToIdleSeconds, timeToLiveSeconds -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractEhcacheCache
buildAndRegisterCache, clear, equals, getId, getObject, getOrCreateCache, getReadWriteLock, getSize, hashCode, putObject, recreateCacheIfInitialized, setMaxBytesLocalDisk, setMaxEntriesLocalDisk, setMaxEntriesLocalHeap, setMemoryStoreEvictionPolicy, setTimeToIdleSeconds, setTimeToLiveSeconds, toString, unlock
-
Constructor Details
-
EhBlockingCache
-
-
Method Details
-
removeObject
Description copied from class:AbstractEhcacheCache- Specified by:
removeObjectin interfaceorg.apache.ibatis.cache.Cache- Overrides:
removeObjectin classAbstractEhcacheCache
-