Package de.julielab.java.utilities.cache
Class CacheMapSettings
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- de.julielab.java.utilities.cache.CacheMapSettings
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class CacheMapSettings extends HashMap<String,Object>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static StringENABLE_SIZE_COUNTstatic StringEXPIRE_AFTER_CREATEstatic StringEXPIRE_AFTER_GETstatic StringEXPIRE_AFTER_UPDATEstatic StringEXPIRE_EXECUTORstatic StringEXPIRE_EXECUTOR_PERIODstatic StringMAP_TYPEstatic StringMAX_NODE_SIZEstatic StringMAX_SIZEstatic StringMAX_STORE_SIZECauses the size of the store on disc to keep within the given limit in bytes.static StringMEM_CACHE_SIZEThis is not an actual DBMap setting but only used by theCacheServiceto create an in-memory cache for fast access which uses the persistent cache on disc as overflow store.static StringOVERFLOW_DBstatic StringPERSIST_TYPEstatic StringUSE_PERSISTENT_CACHE
-
Constructor Summary
Constructors Constructor Description CacheMapSettings(Object... settings)
-
Method Summary
-
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
-
-
-
-
Field Detail
-
USE_PERSISTENT_CACHE
public static final String USE_PERSISTENT_CACHE
- See Also:
- Constant Field Values
-
MAP_TYPE
public static final String MAP_TYPE
- See Also:
- Constant Field Values
-
MEM_CACHE_SIZE
public static final String MEM_CACHE_SIZE
This is not an actual DBMap setting but only used by theCacheServiceto create an in-memory cache for fast access which uses the persistent cache on disc as overflow store.- See Also:
- Constant Field Values
-
MAX_SIZE
public static final String MAX_SIZE
- See Also:
- Constant Field Values
-
MAX_STORE_SIZE
public static final String MAX_STORE_SIZE
Causes the size of the store on disc to keep within the given limit in bytes. Using this setting will deactivate transactions because they are not supported by the store type required for staying within given space bounds (see DBMaker.kt line 449, the 'make():DB' method). Thus, a crash of the JVM will corrupt the cache. You can alternatively limit the size in terms of entries viaMAX_SIZE.- See Also:
- Constant Field Values
-
PERSIST_TYPE
public static final String PERSIST_TYPE
- See Also:
- Constant Field Values
-
OVERFLOW_DB
public static final String OVERFLOW_DB
- See Also:
- Constant Field Values
-
EXPIRE_EXECUTOR
public static final String EXPIRE_EXECUTOR
- See Also:
- Constant Field Values
-
EXPIRE_EXECUTOR_PERIOD
public static final String EXPIRE_EXECUTOR_PERIOD
- See Also:
- Constant Field Values
-
EXPIRE_AFTER_CREATE
public static final String EXPIRE_AFTER_CREATE
- See Also:
- Constant Field Values
-
EXPIRE_AFTER_GET
public static final String EXPIRE_AFTER_GET
- See Also:
- Constant Field Values
-
EXPIRE_AFTER_UPDATE
public static final String EXPIRE_AFTER_UPDATE
- See Also:
- Constant Field Values
-
ENABLE_SIZE_COUNT
public static final String ENABLE_SIZE_COUNT
- See Also:
- Constant Field Values
-
MAX_NODE_SIZE
public static final String MAX_NODE_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CacheMapSettings
public CacheMapSettings(Object... settings)
-
-