Class ExpirationConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.ExpirationConfigurationBuilder
- All Implemented Interfaces:
org.infinispan.commons.configuration.Builder<ExpirationConfiguration>,ConfigurationChildBuilder
public class ExpirationConfigurationBuilder
extends Object
implements org.infinispan.commons.configuration.Builder<ExpirationConfiguration>
Controls the default expiration settings for entries in the cache.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.configuration.attributes.AttributeSetbuild()create()Disable the background reaper to test entries for expiration.Enable the background reaper to test entries for expiration.encoding()protected ConfigurationBuilderindexing()lifespan(long l) Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in milliseconds.Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in milliseconds.locking()longmaxIdle()Maximum idle time a cache entry will be maintained in the cache, in milliseconds.maxIdle(long l) Maximum idle time a cache entry will be maintained in the cache, in milliseconds.Maximum idle time a cache entry will be maintained in the cache, in milliseconds.memory()query()read(ExpirationConfiguration template, org.infinispan.commons.configuration.Combine combine) booleanreaperEnabled(boolean enabled) Enable the background reaper to test entries for expiration.security()booleansimpleCache(boolean simpleCache) sites()template(boolean template) toString()Control how the timestamp of read keys are updated on all the key owners in a cluster.tracing()unsafe()voidvalidate()voidvalidate(GlobalConfiguration globalConfig) longwakeUpInterval(long l) Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores.wakeUpInterval(long l, TimeUnit unit) Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.commons.configuration.Builder
read, reset
-
Field Details
-
builder
-
-
Method Details
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<ExpirationConfiguration>
-
lifespan
Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in milliseconds. -1 means the entries never expire. Note that this can be overridden on a per-entry basis by using the Cache API. -
lifespan
Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in milliseconds. -1 means the entries never expire. Note that this can be overridden on a per-entry basis by using the Cache API. -
maxIdle
Maximum idle time a cache entry will be maintained in the cache, in milliseconds. If the idle time is exceeded, the entry will be expired cluster-wide. -1 means the entries never expire. Note that this can be overridden on a per-entry basis by using the Cache API. -
maxIdle
Maximum idle time a cache entry will be maintained in the cache, in milliseconds. If the idle time is exceeded, the entry will be expired cluster-wide. -1 means the entries never expire.Note that this can be overridden on a per-entry basis by using the Cache API.
-
maxIdle
public long maxIdle()Maximum idle time a cache entry will be maintained in the cache, in milliseconds. If the idle time is exceeded, the entry will be expired cluster-wide. -1 means the entries never expire.- Returns:
- the max idle setting, default is -1 for disabled
-
enableReaper
Enable the background reaper to test entries for expiration. Regardless of whether a reaper is used, entries are tested for expiration lazily when they are touched. -
reaperEnabled
Enable the background reaper to test entries for expiration. Regardless of whether a reaper is used, entries are tested for expiration lazily when they are touched. -
disableReaper
Disable the background reaper to test entries for expiration. to test entries for expiration. Regardless of whether a reaper is used, entries are tested for expiration lazily when they are touched. -
reaperEnabled
public boolean reaperEnabled() -
wakeUpInterval
Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores. If you wish to disable the periodic eviction process altogether, set wakeupInterval to -1. -
wakeupInterval
public long wakeupInterval() -
wakeUpInterval
Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores. If you wish to disable the periodic eviction process altogether, set wakeupInterval to -1. -
touch
Control how the timestamp of read keys are updated on all the key owners in a cluster. Default isTouchMode.SYNC. If the cache mode is ASYNC this attribute is ignored, and timestamps are updated asynchronously. -
validate
public void validate()- Specified by:
validatein interfaceorg.infinispan.commons.configuration.Builder<ExpirationConfiguration>
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<ExpirationConfiguration>
-
read
public ExpirationConfigurationBuilder read(ExpirationConfiguration template, org.infinispan.commons.configuration.Combine combine) - Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<ExpirationConfiguration>
-
toString
-
aliases
- Specified by:
aliasesin interfaceConfigurationChildBuilder
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
tracing
- Specified by:
tracingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-