public class TypeOverrides
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
TypeOverrides() |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(org.infinispan.configuration.cache.ConfigurationBuilder builder)
Apply the configuration overrides in this
TypeOverrides instance
to the cache configuration builder passed as parameter. |
java.lang.String |
getCacheName() |
int |
getEvictionMaxEntries() |
org.infinispan.eviction.EvictionStrategy |
getEvictionStrategy() |
long |
getEvictionWakeUpInterval() |
long |
getExpirationLifespan() |
long |
getExpirationMaxIdle() |
boolean |
isExposeStatistics() |
void |
setCacheName(java.lang.String cacheName) |
void |
setEvictionMaxEntries(int evictionMaxEntries)
Maximum number of entries in a cache for this cached type.
|
void |
setEvictionStrategy(java.lang.String evictionStrategy)
Sets eviction strategy for cached type.
|
void |
setEvictionWakeUpInterval(long evictionWakeUpInterval)
Sets how often eviction process should be run for the cached type.
|
void |
setExpirationLifespan(long expirationLifespan)
Maximum lifespan of a cache entry, after which the entry is expired
cluster-wide, in milliseconds.
|
void |
setExpirationMaxIdle(long expirationMaxIdle)
Maximum idle time a cache entry will be maintained in the cache, in
milliseconds.
|
void |
setExposeStatistics(boolean isExposeStatistics)
Enable statistics gathering and reporting via JMX.
|
java.lang.String |
toString() |
void |
validateInfinispanConfiguration(org.infinispan.configuration.cache.Configuration cfg)
Validate the configuration for this cached type.
|
public java.lang.String getCacheName()
public void setCacheName(java.lang.String cacheName)
public org.infinispan.eviction.EvictionStrategy getEvictionStrategy()
public void setEvictionStrategy(java.lang.String evictionStrategy)
evictionStrategy
- String defining eviction strategy allowed.
Possible values are defined in EvictionStrategy
public long getEvictionWakeUpInterval()
public void setEvictionWakeUpInterval(long evictionWakeUpInterval)
evictionWakeUpInterval
- long representing the frequency for executing
the eviction process, in millisecondspublic int getEvictionMaxEntries()
public void setEvictionMaxEntries(int evictionMaxEntries)
evictionMaxEntries
- number of maximum cache entriespublic long getExpirationLifespan()
public void setExpirationLifespan(long expirationLifespan)
expirationLifespan
- long representing the maximum lifespan,
in milliseconds, for a cached entry before
it's expiredpublic long getExpirationMaxIdle()
public void setExpirationMaxIdle(long expirationMaxIdle)
expirationMaxIdle
- long representing the maximum idle time, in
milliseconds, for a cached entry before it's
expiredpublic boolean isExposeStatistics()
public void setExposeStatistics(boolean isExposeStatistics)
isExposeStatistics
- boolean indicating whether statistics should
be enabled or disabledpublic void applyTo(org.infinispan.configuration.cache.ConfigurationBuilder builder)
TypeOverrides
instance
to the cache configuration builder passed as parameter.builder
- cache configuration builder on which to apply
configuration overridespublic void validateInfinispanConfiguration(org.infinispan.configuration.cache.Configuration cfg) throws CacheException
cfg
- configuration to validateCacheException
- if validation failspublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.