public interface SessionCachedContextProvider
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addItemToListCache(java.lang.String cacheKey,
T value)
Add a value to a cached
List. |
<K,V> void |
addItemToMapCache(java.lang.String cacheKey,
K key,
V value)
Add an element to a cached
Map |
<T> void |
addItemToSetCache(java.lang.String cacheKey,
T value)
Add a value to a cached
Set. |
void |
clearListCache(java.lang.String cacheKey)
Clear a list cache by its key.
|
void |
clearMapCache(java.lang.String cacheKey)
Clear a map cache by its key.
|
void |
clearSetCache(java.lang.String cacheKey)
Clear a set cache by its key.
|
void |
createEmptyListCache(java.lang.String cacheKey)
Creates an empty cached
List. |
<T> java.util.List<T> |
getAllItemsFromListCache(java.lang.String cacheKey)
Return a cached
List. |
<K,V> java.util.Map<K,V> |
getAllItemsFromMapCache(java.lang.String cacheKey)
Returns a cached
Map |
<T> java.util.Set<T> |
getAllItemsFromSetCache(java.lang.String cacheKey)
Return a cached
Set. |
boolean |
hasCacheKey(java.lang.String cacheKey)
Checks if there's a cache with the given key.
|
<T> void |
removeItemFromListCache(java.lang.String cacheKey,
T value)
Remove element from a cached list.
|
<K> void |
removeItemFromMapCache(java.lang.String cacheKey,
K key)
Remove an element from a cached list
|
<T> void |
removeItemFromSetCache(java.lang.String cacheKey,
T value)
Remove element from a cached set.
|
<T> void addItemToSetCache(java.lang.String cacheKey,
T value)
Set.T - type of the valuecacheKey - the cache key to find a cached setvalue - the value to add to a cached set<T> java.util.Set<T> getAllItemsFromSetCache(java.lang.String cacheKey)
Set.T - type of a set elementcacheKey - the cache key to find a cached setSet.<T> void removeItemFromSetCache(java.lang.String cacheKey,
T value)
T - type of the valuecacheKey - the cache key to find a cached setvalue - the value to remove from a cached setvoid clearSetCache(java.lang.String cacheKey)
cacheKey - the cache key<T> void addItemToListCache(java.lang.String cacheKey,
T value)
List.T - type of the valuecacheKey - the cache key to find a cached listvalue - the value to add to a cached listvoid createEmptyListCache(java.lang.String cacheKey)
List.cacheKey - the cache key<T> java.util.List<T> getAllItemsFromListCache(java.lang.String cacheKey)
List.T - type of a list elementcacheKey - the cache key to find a cached listList.java.lang.IllegalStateException - if cacheKey does not exist<T> void removeItemFromListCache(java.lang.String cacheKey,
T value)
T - type of the valuecacheKey - the cache key to find a cached listvalue - the value to remove from a cached listjava.lang.IllegalStateException - if cacheKey does not existvoid clearListCache(java.lang.String cacheKey)
cacheKey - the cache keyjava.lang.IllegalStateException - if cacheKey does not exist<K,V> void addItemToMapCache(java.lang.String cacheKey,
K key,
V value)
MapK - type of the keyV - type of the valuecacheKey - the cache key to find a cached mapkey - the key for the valuevalue - the value<K,V> java.util.Map<K,V> getAllItemsFromMapCache(java.lang.String cacheKey)
MapK - type of the keyV - type of the valuecacheKey - the cache key to find a cached mapMapjava.lang.IllegalStateException - if cacheKey does not exist<K> void removeItemFromMapCache(java.lang.String cacheKey,
K key)
K - type of the keycacheKey - the cache key to find a cached mapkey - the key to removejava.lang.IllegalStateException - if cacheKey does not existvoid clearMapCache(java.lang.String cacheKey)
cacheKey - the cache keyjava.lang.IllegalStateException - if cacheKey does not existboolean hasCacheKey(java.lang.String cacheKey)
cacheKey - the cache keyCopyright © 2018 SAP SE. All Rights Reserved.