Interface CacheCollection<E>

    • Method Detail

      • stream

        CacheStream<E> stream()
        Specified by:
        stream in interface org.infinispan.commons.util.CloseableIteratorCollection<E>
        Specified by:
        stream in interface Collection<E>
      • parallelStream

        CacheStream<E> parallelStream()
        Specified by:
        parallelStream in interface org.infinispan.commons.util.CloseableIteratorCollection<E>
        Specified by:
        parallelStream in interface Collection<E>
      • localPublisher

        @Experimental
        default org.reactivestreams.Publisher<E> localPublisher​(int segment)
        Returns a publisher that will publish all elements that map to the given segment. Note this publisher may require going remotely to retrieve elements depending on the underlying configuration and flags applied to the original Cache used to create this CacheCollection.
        Parameters:
        segment - the segment that all published elements belong to
        Returns:
        Publisher that will publish the elements for the given segment
      • localPublisher

        @Experimental
        default org.reactivestreams.Publisher<E> localPublisher​(org.infinispan.commons.util.IntSet segments)
        Returns a publisher that will publish all elements that map to the given segment. Note this publisher may require going remotely to retrieve elements depending on the underlying configuration and flags applied to the original Cache used to create this CacheCollection.
        Parameters:
        segments - the segments that all published elements belong to
        Returns:
        Publisher that will publish the elements for the given segments