org.infinispan.config
Interface Configuration.ExpirationConfig

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

public static interface Configuration.ExpirationConfig

Controls the default expiration settings for entries in the cache.

Since:
5.0
Author:
Vladimir Blagojevic

Method Summary
 Configuration.ExpirationConfig lifespan(Long lifespan)
          Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in milliseconds.
 Configuration.ExpirationConfig maxIdle(Long maxIdle)
          Maximum idle time a cache entry will be maintained in the cache, in milliseconds.
 

Method Detail

lifespan

Configuration.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 overriden on a per-entry bassi by using the Cache API.

Parameters:
expirationLifespan -

maxIdle

Configuration.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 overriden on a per-entry bassi by using the Cache API.

Parameters:
expirationMaxIdle -


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