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, spliterator
CacheStream<E> stream()
CloseableIteratorCollection
This 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 Collection<E>
CacheStream<E> parallelStream()
CloseableIteratorCollection
This 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 Collection<E>
@Experimental default org.reactivestreams.Publisher<E> localPublisher(int segment)
segment
- the segment that all published elements belong to@Experimental default org.reactivestreams.Publisher<E> localPublisher(IntSet segments)
segments
- the segments that all published elements belong toCopyright © 2021 JBoss by Red Hat. All rights reserved.