Package | Description |
---|---|
de.innovationgate.utils.cache |
All purpose facade for caching functionality used in WGA
|
Modifier and Type | Method and Description |
---|---|
static Cache |
CacheFactory.createCache(java.lang.String name,
int capacity,
java.util.Map params)
Creates a cache object
|
void |
EHCacheCore.destroy() |
void |
CacheCore.destroy()
Callback function used, when the cache is no longer needed.
|
void |
Cache.destroy()
Callback function used, when the cache is no longer needed.
|
void |
Cache.flush(java.io.Serializable key)
Flushes a single entry of the cache
|
void |
EHCacheCore.flushAll() |
void |
CacheCore.flushAll()
Flushes the complete cache
|
void |
Cache.flushAll()
Flushes the complete cache
|
void |
EHCacheCore.flushEntry(java.io.Serializable key) |
void |
CacheCore.flushEntry(java.io.Serializable key)
Flushes a single entry of the cache
|
void |
Cache.flushEntry(java.lang.String key)
Deprecated.
|
void |
CacheCore.flushGroup(java.lang.String group)
Flushes the entries of the cache that belong to the given group
|
void |
Cache.flushGroup(java.lang.String group)
Flushes the entries of the cache that belong to the given group
|
java.util.Set<java.io.Serializable> |
CacheCore.getEntryKeys()
Returns a set of the keys of the currently stored entries
May throw a CacheException if this is not supported
|
java.util.Set<java.io.Serializable> |
Cache.getEntryKeys()
Returns a set of the keys of the currently stored entries
May throw a CacheException if this is not supported by the cache implementation
|
long |
CacheCore.getMaxSize()
Returns the maximum number of entries allowed in the cache
|
long |
Cache.getMaxSize()
Returns the maximum number of entries allowed in the cache
|
long |
EHCacheCore.getSize() |
long |
CacheCore.getSize()
Returns the current number of entries in the cache
|
long |
Cache.getSize()
Returns the current number of entries in the cache
|
int |
CacheCore.getUtilisation()
Returns a percent value, describing how many cache retrieval operations actually could return a cache value.
|
int |
Cache.getUtilisation()
Returns a percent value, describing how many cache retrieval operations actually could return a cache value.
|
void |
EHCacheCore.init(java.lang.String name,
int capacity,
java.util.Map<java.lang.String,java.lang.Object> params) |
void |
CacheCore.init(java.lang.String name,
int capacity,
java.util.Map<java.lang.String,java.lang.Object> params)
Initialisation method.
|
java.lang.Object |
Cache.read(java.io.Serializable key)
Reads a cache entry.
|
java.lang.Object |
CacheCore.readEntry(java.io.Serializable key)
Reads a cache entry.
|
java.lang.Object |
Cache.readEntry(java.lang.String key)
Deprecated.
|
void |
EHCacheCore.touchEntry(java.io.Serializable key) |
void |
CacheCore.touchEntry(java.io.Serializable key)
Mark an existing cache entry as updated, so the eviction policy regards it as new
This method does nothing if there is no entry under the given key.
|
void |
Cache.write(java.io.Serializable key,
java.lang.Object obj)
Writes a cache entry
|
void |
Cache.write(java.io.Serializable key,
java.lang.Object obj,
java.lang.String group)
Writes a cache entry
|
void |
Cache.write(java.io.Serializable key,
java.lang.Object obj,
java.lang.String group,
int secondsToLive)
Writes a cache entry
|
void |
CacheCore.writeEntry(java.io.Serializable key,
java.lang.Object obj,
CacheEntryParams params)
Writes a cache entry
|
void |
Cache.writeEntry(java.lang.String key,
java.lang.Object obj)
Deprecated.
|
void |
Cache.writeEntry(java.lang.String key,
java.lang.Object obj,
java.lang.String group)
Deprecated.
|
void |
Cache.writeEntry(java.lang.String key,
java.lang.Object obj,
java.lang.String group,
int secondsToLive)
Deprecated.
|
void |
Cache.writeEntryWithParams(java.lang.String key,
java.lang.Object obj,
CacheEntryParams params)
Deprecated.
|
void |
Cache.writeWithParams(java.io.Serializable key,
java.lang.Object obj,
CacheEntryParams params)
Writes a cache entry, being able to use all available entry params
|