org.smallmind.quorum.cache.indigenous
Class SizeLimitedCacheAccumulator<D extends CacheMetaData,K,E extends OrderedCacheEntry<D,?>>

java.lang.Object
  extended by 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>


Constructor Summary
SizeLimitedCacheAccumulator(int limit)
           
 
Method Summary
 void add(D cacheMetaData)
           
 boolean isOverLimit()
           
 void remove(D cacheMetaData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeLimitedCacheAccumulator

public SizeLimitedCacheAccumulator(int limit)
Method Detail

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.