Class EvictionConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.EvictionConfiguration
-
- All Implemented Interfaces:
Matchable<EvictionConfiguration>
@Deprecated public class EvictionConfiguration extends Object implements Matchable<EvictionConfiguration>
Deprecated.UseMemoryConfiguration
insteadControls the eviction settings for the cache.
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<Long>
SIZE
Deprecated.static AttributeDefinition<EvictionStrategy>
STRATEGY
Deprecated.static AttributeDefinition<EvictionThreadPolicy>
THREAD_POLICY
Deprecated.static AttributeDefinition<EvictionType>
TYPE
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeSet
attributes()
Deprecated.boolean
equals(Object obj)
Deprecated.int
hashCode()
Deprecated.long
maxEntries()
Deprecated.useMemoryConfiguration.size()
insteadlong
size()
Deprecated.useMemoryConfiguration.size()
insteadvoid
size(long newSize)
Deprecated.EvictionStrategy
strategy()
Deprecated.useMemoryConfiguration.evictionType()
insteadEvictionThreadPolicy
threadPolicy()
Deprecated.String
toString()
Deprecated.EvictionType
type()
Deprecated.useMemoryConfiguration.evictionType()
instead
-
-
-
Field Detail
-
SIZE
public static final AttributeDefinition<Long> SIZE
Deprecated.
-
TYPE
public static final AttributeDefinition<EvictionType> TYPE
Deprecated.
-
STRATEGY
public static final AttributeDefinition<EvictionStrategy> STRATEGY
Deprecated.
-
THREAD_POLICY
public static final AttributeDefinition<EvictionThreadPolicy> THREAD_POLICY
Deprecated.
-
-
Method Detail
-
strategy
@Deprecated public EvictionStrategy strategy()
Deprecated.useMemoryConfiguration.evictionType()
insteadEviction strategy. Available options are 'UNORDERED', 'LRU', 'LIRS' and 'NONE' (to disable eviction).
-
threadPolicy
@Deprecated public EvictionThreadPolicy threadPolicy()
Deprecated.Threading policy for eviction.
-
maxEntries
@Deprecated public long maxEntries()
Deprecated.useMemoryConfiguration.size()
insteadMaximum 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. Only makes sense when using the COUNT type.
-
size
@Deprecated public long size()
Deprecated.useMemoryConfiguration.size()
instead
-
size
@Deprecated public void size(long newSize)
Deprecated.
-
type
@Deprecated public EvictionType type()
Deprecated.useMemoryConfiguration.evictionType()
instead
-
attributes
public AttributeSet attributes()
Deprecated.
-
-