E - The type of the collectionpublic interface CacheCollection<E> extends CloseableIteratorCollection<E>
| Modifier and Type | Method and Description |
|---|---|
default org.reactivestreams.Publisher<E> |
localPublisher(int segment)
Returns a publisher that will publish all elements that map to the given segment.
|
default org.reactivestreams.Publisher<E> |
localPublisher(IntSet segments)
Returns a publisher that will publish all elements that map to the given segment.
|
CacheStream<E> |
parallelStream() |
CacheStream<E> |
stream() |
iterator, spliteratorCacheStream<E> stream()
CloseableIteratorCollectionThis stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
stream in interface CloseableIteratorCollection<E>stream in interface java.util.Collection<E>CacheStream<E> parallelStream()
CloseableIteratorCollectionThis stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
parallelStream in interface CloseableIteratorCollection<E>parallelStream in interface java.util.Collection<E>default org.reactivestreams.Publisher<E> localPublisher(int segment)
segment - the segment that all published elements belong todefault org.reactivestreams.Publisher<E> localPublisher(IntSet segments)
segments - the segments that all published elements belong to