Package | Description |
---|---|
org.cache2k.core | |
org.cache2k.core.operation |
Modifier and Type | Method and Description |
---|---|
protected <R> EntryAction<K,V,R> |
WiredCache.createEntryAction(K key,
Entry<K,V> e,
Semantic<K,V,R> op) |
protected <R> EntryAction<K,V,R> |
HeapCache.createEntryAction(K key,
Entry<K,V> e,
Semantic<K,V,R> op) |
protected abstract <R> EntryAction<K,V,R> |
BaseCache.createEntryAction(K key,
Entry<K,V> e,
Semantic<K,V,R> op) |
protected <R> R |
BaseCache.execute(K key,
Entry<K,V> e,
Semantic<K,V,R> op) |
protected <R> R |
BaseCache.execute(K key,
Semantic<K,V,R> op) |
protected <R> R |
BaseCache.execute(Semantic<K,V,R> op,
EntryAction<K,V,R> _action) |
Constructor and Description |
---|
EntryAction(HeapCache<K,V> _heapCache,
InternalCache<K,V> _userCache,
Semantic<K,V,R> op,
K k,
Entry<K,V> e) |
Modifier and Type | Class and Description |
---|---|
static class |
Semantic.Base<K,V,R>
Base class to provide a default for the load result.
|
static class |
Semantic.MightUpdateExisting<K,V,R>
Read a cache entry and do an optional update.
|
static class |
Semantic.Read<K,V,R>
Read only operation.
|
static class |
Semantic.Update<K,V,R>
Only update the entry.
|
static class |
Semantic.UpdateExisting<K,V,R>
Read a cache entry and do an optional update.
|
Modifier and Type | Field and Description |
---|---|
static Semantic |
Operations.REFRESH |
static Semantic |
Operations.UNCONDITIONAL_LOAD |
Modifier and Type | Method and Description |
---|---|
Semantic<K,V,V> |
Operations.computeIfAbsent(K key,
Callable<V> _function) |
Semantic<K,V,Boolean> |
Operations.contains(K key) |
Semantic<K,V,Boolean> |
Operations.containsAndRemove(K key) |
Semantic<K,V,Void> |
Operations.expire(K key,
long t) |
Semantic<K,V,V> |
Operations.get(K key) |
Semantic<K,V,ResultEntry<K,V>> |
Operations.getEntry(K key) |
<R> Semantic<K,V,R> |
Operations.invoke(K key,
boolean _readThrough,
EntryProcessor<K,V,R> _processor) |
Semantic<K,V,V> |
Operations.peek(K key) |
Semantic<K,V,V> |
Operations.peekAndPut(K key,
V value) |
Semantic<K,V,V> |
Operations.peekAndRemove(K key) |
Semantic<K,V,V> |
Operations.peekAndReplace(K key,
V value) |
Semantic<K,V,ResultEntry<K,V>> |
Operations.peekEntry(K key) |
Semantic<K,V,V> |
Operations.put(K key,
V value) |
Semantic<K,V,Boolean> |
Operations.putIfAbsent(K key,
V value)
Updates intentionally hit and miss counter to adjust with JSR107.
|
Semantic<K,V,V> |
Operations.remove(K key) |
Semantic<K,V,Boolean> |
Operations.remove(K key,
V value) |
Semantic<K,V,Boolean> |
Operations.replace(K key,
V value)
Updates intentionally hit and miss counter to adjust with JSR107.
|
Semantic<K,V,Boolean> |
Operations.replace(K key,
V value,
V newValue) |
Semantic<K,V,CacheEntry<K,V>> |
Operations.replaceOrGet(K key,
V value,
V newValue,
CacheEntry<K,V> dummyEntry) |
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.