- 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
Returns a cache stream filter that performs no filtering.
local(org.infinispan.Cache<?,?> cache)
Returns a cache stream filter of the locally owned segments of the specified cache.
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.
segments(org.infinispan.commons.util.IntSet segments)
Returns a cache stream filter for the specified segments.
-
Method Details
-
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
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