Package org.infinispan
Interface CacheCollection<E>
-
- Type Parameters:
E
- The type of the collection
- All Superinterfaces:
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
,WriteableCacheCollectionMapper
,WriteableCacheSetMapper
public interface CacheCollection<E> extends 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: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 interfaceCloseableIteratorCollection<E>
- Specified by:
stream
in interfaceCollection<E>
-
parallelStream
CacheStream<E> parallelStream()
Description copied from interface: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 interfaceCloseableIteratorCollection<E>
- Specified by:
parallelStream
in interfaceCollection<E>
-
-