Interface CacheCollection<E>

    • Method Detail

      • 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​(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