org.infinispan.configuration.cache
Class EvictionConfiguration

java.lang.Object
  extended by org.infinispan.configuration.cache.EvictionConfiguration

public class EvictionConfiguration
extends Object

Controls the eviction settings for the cache.


Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 int maxEntries()
          Maximum number of entries in a cache instance.
 EvictionStrategy strategy()
          Eviction strategy.
 EvictionThreadPolicy threadPolicy()
          Threading policy for eviction.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

strategy

public EvictionStrategy strategy()
Eviction strategy. Available options are 'UNORDERED', 'LRU', 'LIRS' and 'NONE' (to disable eviction).


threadPolicy

public EvictionThreadPolicy threadPolicy()
Threading policy for eviction.


maxEntries

public int maxEntries()
Maximum number of entries in a cache instance. Cache size is guaranteed not to exceed upper limit specified by max entries. However, due to the nature of eviction it is unlikely to ever be exactly maximum number of entries specified here.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.