org.infinispan.config
Interface Configuration.L1Config

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

public static interface Configuration.L1Config

Configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes, this element is ignored.

Since:
5.0
Author:
Vladimir Blagojevic

Method Summary
 Configuration.L1Config enabled(Boolean enabled)
          Toggle to enable/disable L1 cache.
 Configuration.L1Config lifespan(Long lifespan)
          Maximum lifespan of an entry placed in the L1 cache.
 Configuration.L1Config onRehash(Boolean onRehash)
          If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether.
 

Method Detail

enabled

Configuration.L1Config enabled(Boolean enabled)
Toggle to enable/disable L1 cache.

Parameters:
l1CacheEnabled -

lifespan

Configuration.L1Config lifespan(Long lifespan)
Maximum lifespan of an entry placed in the L1 cache.

Parameters:
l1Lifespan -

onRehash

Configuration.L1Config onRehash(Boolean onRehash)
If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether.

Parameters:
l1OnRehash -


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