org.wildfly.swarm.config.infinispan.cache_container

## Class EvictionComponent<T extends EvictionComponent<T>>

- java.lang.Object
- - java.util.AbstractMap<K,V>
  - - java.util.HashMap
    - - org.wildfly.swarm.config.infinispan.cache_container.EvictionComponent<T>

- All Implemented Interfaces:
    Serializable, Cloneable, Map

      public class EvictionComponent<T extends EvictionComponent<T>>
      extends HashMap

  The cache eviction configuration.
  See Also:
    Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `EvictionComponent.Strategy`

    - ### Nested classes/interfaces inherited from class java.util.AbstractMap

      `AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>`

    - ### Nested classes/interfaces inherited from interface java.util.Map

      `Map.Entry<K,V>`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `EvictionComponent()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addPropertyChangeListener(PropertyChangeListener listener)` Adds a property change listener
    `Long` | `evictions()` The number of cache eviction operations.
    `T` | `evictions(Long value)` The number of cache eviction operations.
    `String` | `getKey()`
    `Long` | `maxEntries()` Maximum number of entries in a cache instance.
    `T` | `maxEntries(Long value)` Maximum number of entries in a cache instance.
    `void` | `removePropertyChangeListener(PropertyChangeListener listener)` Removes a property change listener
    `EvictionComponent.Strategy` | `strategy()` Sets the cache eviction strategy.
    `T` | `strategy(EvictionComponent.Strategy value)` Sets the cache eviction strategy.

    - ### Methods inherited from class java.util.HashMap

      `clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values`

    - ### Methods inherited from class java.util.AbstractMap

      `equals, hashCode, toString`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface java.util.Map

      `equals, hashCode`

- - ### Constructor Detail

    - #### EvictionComponent

          public EvictionComponent()

  - ### Method Detail

    - #### getKey

          public String getKey()

    - #### addPropertyChangeListener

          public void addPropertyChangeListener(PropertyChangeListener listener)

      Adds a property change listener

    - #### removePropertyChangeListener

          public void removePropertyChangeListener(PropertyChangeListener listener)

      Removes a property change listener

    - #### evictions

          public Long evictions()

      The number of cache eviction operations. May return null if the cache is not started.

    - #### evictions

          public T evictions(Long value)

      The number of cache eviction operations. May return null if the cache is not started.

    - #### maxEntries

          public Long maxEntries()

      Maximum number of entries in a cache instance. If selected value is not a power of two the actual value will default to the least power of two larger than selected value. -1 means no limit.

    - #### maxEntries

          public T maxEntries(Long value)

      Maximum number of entries in a cache instance. If selected value is not a power of two the actual value will default to the least power of two larger than selected value. -1 means no limit.

    - #### strategy

          public EvictionComponent.Strategy strategy()

      Sets the cache eviction strategy. Available options are 'UNORDERED', 'FIFO', 'LRU', 'LIRS' and 'NONE' (to disable eviction).

    - #### strategy

          public T strategy(EvictionComponent.Strategy value)

      Sets the cache eviction strategy. Available options are 'UNORDERED', 'FIFO', 'LRU', 'LIRS' and 'NONE' (to disable eviction).

Copyright © 2017 JBoss by Red Hat. All rights reserved.