@Override public void setLimit(int max) { setMaximumEntries(max); }
@Override public void setLimit(int max) { setMaximumEntries(max); }
/** * Creates an LRU capacity controller that allows the given number of maximum * entries. * * @param maximumEntries * The maximum number of entries allowed in the region whose * capacity this controller controls. Once there are * <code>capacity</code> entries in a region, this controller * will remove the least recently used entry.<br> * <p> * For a region with {@link DataPolicy#PARTITION}, the maximum * number of entries allowed in the region, collectively for * its primary buckets and redundant copies for this VM. After * there are <code>capacity</code> entries in the region's * primary buckets and redundant copies for this VM, this * controller will remove the least recently used entry from * the bucket in which the subsequent <code>put</code> takes * place. * @param evictionAction * The action to perform upon the least recently used entry. * See {@link #EVICTION_ACTION}. */ public LRUCapacityController(int maximumEntries, EvictionAction evictionAction,Region region) { super(evictionAction,region); setMaximumEntries(maximumEntries); }
/** * Creates an LRU capacity controller that allows the given number of maximum * entries. * * @param maximumEntries * The maximum number of entries allowed in the region whose * capacity this controller controls. Once there are * <code>capacity</code> entries in a region, this controller * will remove the least recently used entry.<br> * <p> * For a region with {@link DataPolicy#PARTITION}, the maximum * number of entries allowed in the region, collectively for * its primary buckets and redundant copies for this VM. After * there are <code>capacity</code> entries in the region's * primary buckets and redundant copies for this VM, this * controller will remove the least recently used entry from * the bucket in which the subsequent <code>put</code> takes * place. * @param evictionAction * The action to perform upon the least recently used entry. * See {@link #EVICTION_ACTION}. */ public LRUCapacityController(int maximumEntries, EvictionAction evictionAction,Region region) { super(evictionAction,region); setMaximumEntries(maximumEntries); }