org.infinispan.config
Interface FluentConfiguration.ExpirationConfig

All Known Implementing Classes:
Configuration.ExpirationType
Enclosing class:
FluentConfiguration

public static interface FluentConfiguration.ExpirationConfig

Controls the default expiration settings for entries in the cache.


Method Summary
 Configuration build()
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
           
 FluentConfiguration.DataContainerConfig dataContainer()
           
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          This method allows configuration of the deadlock detection.
 FluentConfiguration.EvictionConfig eviction()
           
 FluentConfiguration.ExpirationConfig expiration()
           
 FluentConfiguration.IndexingConfig indexing()
          This method allows configuration of the indexing subsystem.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          This method allows configuration of invocation batching.
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.ExpirationConfig lifespan(Long lifespan)
          Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in milliseconds.
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.ExpirationConfig maxIdle(Long maxIdle)
          Maximum idle time a cache entry will be maintained in the cache, in milliseconds.
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.TransactionConfig transaction()
           
 FluentConfiguration.UnsafeConfig unsafe()
           
 FluentConfiguration.ExpirationConfig wakeUpInterval(Long wakeUpInterval)
          Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores.
 

Method Detail

lifespan

FluentConfiguration.ExpirationConfig lifespan(Long 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.

Parameters:
lifespan -

maxIdle

FluentConfiguration.ExpirationConfig maxIdle(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. Note that this can be overridden on a per-entry basis by using the Cache API.

Parameters:
maxIdle -

wakeUpInterval

FluentConfiguration.ExpirationConfig wakeUpInterval(Long 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.

Parameters:
wakeUpInterval -

locking

FluentConfiguration.LockingConfig locking()

loaders

FluentConfiguration.LoadersConfig loaders()

transaction

FluentConfiguration.TransactionConfig transaction()

deadlockDetection

FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
This method allows configuration of the deadlock detection. When this method is called, it automatically enables deadlock detection. So, if you want it to be disabled, make sure you call FluentConfiguration.DeadlockDetectionConfig.disable()


customInterceptors

FluentConfiguration.CustomInterceptorsConfig customInterceptors()

eviction

FluentConfiguration.EvictionConfig eviction()

expiration

FluentConfiguration.ExpirationConfig expiration()

clustering

FluentConfiguration.ClusteringConfig clustering()

indexing

FluentConfiguration.IndexingConfig indexing()
This method allows configuration of the indexing subsystem. When this method is called, it automatically enables indexing. So, if you want it to be disabled, make sure you call FluentConfiguration.IndexingConfig.disable()


dataContainer

FluentConfiguration.DataContainerConfig dataContainer()

unsafe

FluentConfiguration.UnsafeConfig unsafe()

jmxStatistics

FluentConfiguration.JmxStatisticsConfig jmxStatistics()
This method allows configuration of jmx statistics. When this method is called, it automatically enables jmx statistics.


storeAsBinary

FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
This method allows configuration of lazy deserialization. When this method is called, it automatically enables lazy deserialization.


invocationBatching

FluentConfiguration.InvocationBatchingConfig invocationBatching()
This method allows configuration of invocation batching. When this method is called, it automatically enables invocation batching.


build

Configuration build()

-->

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