public abstract class BaseStore<K,V>
extends java.lang.Object
implements org.ehcache.core.spi.store.Store<K,V>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseStore.BaseStoreProvider |
org.ehcache.core.spi.store.Store.Configuration<K,V>, org.ehcache.core.spi.store.Store.Iterator<T>, org.ehcache.core.spi.store.Store.Provider, org.ehcache.core.spi.store.Store.PutStatus, org.ehcache.core.spi.store.Store.RemoveStatus, org.ehcache.core.spi.store.Store.ReplaceStatus, org.ehcache.core.spi.store.Store.ValueHolder<V>| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<K> |
keyType |
protected boolean |
operationStatisticsEnabled
Tells if this store is by itself or in a tiered setup
|
protected org.ehcache.core.spi.service.StatisticsService |
statisticsService |
protected java.lang.Class<V> |
valueType |
| Constructor and Description |
|---|
BaseStore(java.lang.Class<K> keyType,
java.lang.Class<V> valueType,
boolean operationStatisticsEnabled,
org.ehcache.core.spi.service.StatisticsService statisticsService) |
BaseStore(org.ehcache.core.spi.store.Store.Configuration<K,V> config,
org.ehcache.core.spi.service.StatisticsService statisticsService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkKey(K keyObject) |
protected void |
checkValue(V valueObject) |
protected <T extends java.lang.Enum<T>> |
createObserver(java.lang.String name,
java.lang.Class<T> outcome,
boolean canBeDisabled)
Create an
OperationObserver using this for the context. |
protected abstract java.lang.String |
getStatisticsTag() |
protected <T extends java.io.Serializable> |
registerStatistic(java.lang.String name,
org.ehcache.core.statistics.StatisticType type,
java.util.Set<java.lang.String> tags,
java.util.function.Supplier<T> valueSupplier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final java.lang.Class<K> keyType
protected final java.lang.Class<V> valueType
protected final boolean operationStatisticsEnabled
protected final org.ehcache.core.spi.service.StatisticsService statisticsService
public BaseStore(org.ehcache.core.spi.store.Store.Configuration<K,V> config, org.ehcache.core.spi.service.StatisticsService statisticsService)
protected void checkKey(K keyObject)
protected void checkValue(V valueObject)
protected <T extends java.lang.Enum<T>> org.ehcache.core.statistics.OperationObserver<T> createObserver(java.lang.String name,
java.lang.Class<T> outcome,
boolean canBeDisabled)
OperationObserver using this for the context.T - type of the outcomename - name of the statisticoutcome - class of the possible outcomescanBeDisabled - if this statistic can be disabled by a StoreStatisticsConfigurationprotected <T extends java.io.Serializable> void registerStatistic(java.lang.String name,
org.ehcache.core.statistics.StatisticType type,
java.util.Set<java.lang.String> tags,
java.util.function.Supplier<T> valueSupplier)
protected abstract java.lang.String getStatisticsTag()