Interface CacheStreamFilter<T>

Type Parameters:
T - the stream element type
All Superinterfaces:
Function<org.infinispan.CacheStream<T>,org.infinispan.CacheStream<T>>, UnaryOperator<org.infinispan.CacheStream<T>>

public interface CacheStreamFilter<T> extends UnaryOperator<org.infinispan.CacheStream<T>>
Author:
Paul Ferraro
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <T> CacheStreamFilter<T>
    Returns a cache stream filter that performs no filtering.
    static <T> CacheStreamFilter<T>
    local(org.infinispan.Cache<?,?> cache)
    Returns a cache stream filter of the locally owned segments of the specified cache.
    static <T> CacheStreamFilter<T>
    primary(org.infinispan.distribution.ch.ConsistentHash hash, org.infinispan.remoting.transport.Address member)
    Returns a cache stream filter of the segments of the specified consistent hash owned by the specified member.
    static <T> CacheStreamFilter<T>
    segments(org.infinispan.commons.util.IntSet segments)
    Returns a cache stream filter for the specified segments.

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose
  • Method Details

    • identity

      static <T> CacheStreamFilter<T> identity()
      Returns a cache stream filter that performs no filtering.
      Type Parameters:
      T - the stream element type
      Returns:
      a cache stream filter
    • segments

      static <T> CacheStreamFilter<T> segments(org.infinispan.commons.util.IntSet segments)
      Returns a cache stream filter for the specified segments.
      Type Parameters:
      T - the stream element type
      Parameters:
      segments - the segments by which to filter the cache stream.
      Returns:
      a cache stream filter
    • local

      static <T> CacheStreamFilter<T> local(org.infinispan.Cache<?,?> cache)
      Returns a cache stream filter of the locally owned segments of the specified cache.
      Type Parameters:
      T - the stream element type
      Parameters:
      cache - the cache from which to obtain the primary segments.
      Returns:
      a cache stream filter
    • primary

      static <T> CacheStreamFilter<T> primary(org.infinispan.distribution.ch.ConsistentHash hash, org.infinispan.remoting.transport.Address member)
      Returns a cache stream filter of the segments of the specified consistent hash owned by the specified member.
      Type Parameters:
      T - the stream element type
      Parameters:
      hash - a consistent hash
      member - a member of the specified consistent hash
      Returns:
      a cache stream filter