public interface EntryLookup
| Modifier and Type | Method and Description |
|---|---|
default void |
forEachEntry(BiConsumer<Object,CacheEntry> action)
Execute an action for each entry in the context.
|
default void |
forEachValue(BiConsumer<Object,CacheEntry> action)
Execute an action for each value in the context.
|
Map<Object,CacheEntry> |
getLookedUpEntries()
Deprecated.
Since 9.3, please use
forEachEntry(BiConsumer) or lookedUpEntriesCount() instead. |
default int |
lookedUpEntriesCount() |
CacheEntry |
lookupEntry(Object key)
Retrieves an entry from the collection of looked up entries in the current scope.
|
void |
putLookedUpEntry(Object key,
CacheEntry e)
Puts an entry in the registry of looked up entries in the current scope.
|
default void |
removeLookedUpEntries(Collection<?> keys) |
void |
removeLookedUpEntry(Object key) |
CacheEntry lookupEntry(Object key)
key - key to look up@Deprecated Map<Object,CacheEntry> getLookedUpEntries()
forEachEntry(BiConsumer) or lookedUpEntriesCount() instead.null if the key does not exist in the cache.default void forEachValue(BiConsumer<Object,CacheEntry> action)
default void forEachEntry(BiConsumer<Object,CacheEntry> action)
null value and may also report a null key.default int lookedUpEntriesCount()
void putLookedUpEntry(Object key, CacheEntry e)
key - key to storee - entry to storevoid removeLookedUpEntry(Object key)
default void removeLookedUpEntries(Collection<?> keys)
Copyright © 2021 JBoss by Red Hat. All rights reserved.