Package org.infinispan.cache.impl
Class CacheBackedKeySet<K,V>
java.lang.Object
org.infinispan.cache.impl.AbstractCacheBackedSet<K,V,K>
org.infinispan.cache.impl.CacheBackedKeySet<K,V>
- All Implemented Interfaces:
Iterable<K>
,Collection<K>
,Set<K>
,CacheCollection<K>
,CacheSet<K>
,CloseableIteratorCollection<K>
,CloseableIteratorSet<K>
Key set backed by a cache.
- Since:
- 13.0
-
Field Summary
Fields inherited from class org.infinispan.cache.impl.AbstractCacheBackedSet
cache, explicitFlags, lockOwner
-
Constructor Summary
ConstructorDescriptionCacheBackedKeySet
(CacheImpl<K, V> cache, Object lockOwner, long explicitFlags) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected Object
extractKey
(Object e) Extract the key from a set element.protected K
wrapElement
(K 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.CacheCollection
localPublisher, localPublisher
Methods inherited from interface java.util.Collection
toArray
-
Constructor Details
-
CacheBackedKeySet
-
-
Method Details
-
contains
-
entryToKeyFunction
- Specified by:
entryToKeyFunction
in classAbstractCacheBackedSet<K,
V, K>
-
extractKey
Description copied from class:AbstractCacheBackedSet
Extract the key from a set element.- Specified by:
extractKey
in classAbstractCacheBackedSet<K,
V, K>
-
wrapElement
Description copied from class:AbstractCacheBackedSet
Wrap the element if needed- Specified by:
wrapElement
in classAbstractCacheBackedSet<K,
V, K>
-