org.smallmind.quorum.cache.indigenous
Class SizeLimitedCacheAccumulator<D extends CacheMetaData,K,E extends OrderedCacheEntry<D,?>>
java.lang.Object
org.smallmind.quorum.cache.indigenous.SizeLimitedCacheAccumulator<D,K,E>
- All Implemented Interfaces:
- CacheAccumulator<D,K,E>
public class SizeLimitedCacheAccumulator<D extends CacheMetaData,K,E extends OrderedCacheEntry<D,?>>
- extends Object
- implements CacheAccumulator<D,K,E>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SizeLimitedCacheAccumulator
public SizeLimitedCacheAccumulator(int limit)
add
public void add(D cacheMetaData)
- Specified by:
add in interface CacheAccumulator<D extends CacheMetaData,K,E extends OrderedCacheEntry<D,?>>
remove
public void remove(D cacheMetaData)
- Specified by:
remove in interface CacheAccumulator<D extends CacheMetaData,K,E extends OrderedCacheEntry<D,?>>
isOverLimit
public boolean isOverLimit()
- Specified by:
isOverLimit in interface CacheAccumulator<D extends CacheMetaData,K,E extends OrderedCacheEntry<D,?>>
Copyright © 2011. All Rights Reserved.