Package org.infinispan.cache.impl
Class CacheBackedEntrySet<K,V>
java.lang.Object
org.infinispan.cache.impl.AbstractCacheBackedSet<K,V,CacheEntry<K,V>>
org.infinispan.cache.impl.CacheBackedEntrySet<K,V>
- All Implemented Interfaces:
Iterable<CacheEntry<K,,V>> Collection<CacheEntry<K,,V>> Set<CacheEntry<K,,V>> CacheCollection<CacheEntry<K,,V>> CacheSet<CacheEntry<K,,V>> CloseableIteratorCollection<CacheEntry<K,,V>> CloseableIteratorSet<CacheEntry<K,V>>
Entry set backed by a cache.
Implements CacheSet<CacheEntry<K, V>> but it is also (mis-)used as a CacheSet<Map.Entry<K, V>>.
This works because add() and addAll() are not implemented.
- Since:
- 13.0
-
Field Summary
Fields inherited from class org.infinispan.cache.impl.AbstractCacheBackedSet
cache, explicitFlags, lockOwner -
Constructor Summary
ConstructorsConstructorDescriptionCacheBackedEntrySet(CacheImpl<K, V> cache, Object lockOwner, long explicitFlags) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected ObjectextractKey(Object e) Extract the key from a set element.protected CacheEntry<K,V> wrapElement(CacheEntry<K, V> e) Wrap the element if neededMethods inherited from class org.infinispan.cache.impl.AbstractCacheBackedSet
add, addAll, clear, containsAll, decoratedWriteContextBuilder, forEach, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.CacheCollection
localPublisher, localPublisherMethods inherited from interface java.util.Collection
toArray
-
Constructor Details
-
CacheBackedEntrySet
-
-
Method Details
-
contains
- Specified by:
containsin interfaceCollection<K>- Specified by:
containsin interfaceSet<K>- Specified by:
containsin classAbstractCacheBackedSet<K,V, CacheEntry<K, V>>
-
entryToKeyFunction
- Specified by:
entryToKeyFunctionin classAbstractCacheBackedSet<K,V, CacheEntry<K, V>>
-
extractKey
Description copied from class:AbstractCacheBackedSetExtract the key from a set element.- Specified by:
extractKeyin classAbstractCacheBackedSet<K,V, CacheEntry<K, V>>
-
wrapElement
Description copied from class:AbstractCacheBackedSetWrap the element if needed- Specified by:
wrapElementin classAbstractCacheBackedSet<K,V, CacheEntry<K, V>>
-