Package org.infinispan
Interface CacheCollection<E>
-
- Type Parameters:
E
- The type of the collection
- All Superinterfaces:
org.infinispan.commons.util.CloseableIteratorCollection<E>
,Collection<E>
,Iterable<E>
- All Known Subinterfaces:
CacheSet<E>
- All Known Implementing Classes:
AbstractDelegatingCacheCollection
,AbstractDelegatingCacheSet
,CacheCollectionMapper
,CacheSetMapper
,DistributionBulkInterceptor.BackingEntrySet
,DistributionBulkInterceptor.BackingKeySet
,DistributionBulkInterceptor.TxBackingEntrySet
,SimpleCacheImpl.CacheEntrySet
,SimpleCacheImpl.EntrySet
,SimpleCacheImpl.EntrySetBase
,SimpleCacheImpl.KeySet
,SimpleCacheImpl.Values
,WriteableCacheCollectionMapper
,WriteableCacheSetMapper
public interface CacheCollection<E> extends org.infinispan.commons.util.CloseableIteratorCollection<E>
A collection type that returns special Cache based streams that have additional options to tweak behavior.- Since:
- 8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheStream<E>
parallelStream()
CacheStream<E>
stream()
-
Methods inherited from interface org.infinispan.commons.util.CloseableIteratorCollection
iterator, spliterator
-
-
-
-
Method Detail
-
stream
CacheStream<E> stream()
Description copied from interface:org.infinispan.commons.util.CloseableIteratorCollection
This stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
stream
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<E>
- Specified by:
stream
in interfaceCollection<E>
-
parallelStream
CacheStream<E> parallelStream()
Description copied from interface:org.infinispan.commons.util.CloseableIteratorCollection
This stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
parallelStream
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<E>
- Specified by:
parallelStream
in interfaceCollection<E>
-
-