public class EvictionComponent<T extends EvictionComponent<T>> extends HashMap
| Modifier and Type | Class and Description |
|---|---|
static class |
EvictionComponent.Strategy |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
EvictionComponent() |
| 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.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Long evictions()
public T evictions(Long value)
public Long maxEntries()
public T maxEntries(Long value)
public EvictionComponent.Strategy strategy()
public T strategy(EvictionComponent.Strategy value)
Copyright © 2017 JBoss by Red Hat. All rights reserved.