Class CacheEntriesTask<K,V>

java.lang.Object
org.wildfly.clustering.server.infinispan.scheduler.CacheEntriesTask<K,V>
Type Parameters:
K - cache key type
V - cache value type
All Implemented Interfaces:
Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<Map.Entry<K,V>>>, org.wildfly.clustering.function.Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<Map.Entry<K,V>>>

public class CacheEntriesTask<K,V> extends Object implements org.wildfly.clustering.function.Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<Map.Entry<K,V>>>
Invokes a task against cache entries matching a filter.
Author:
Paul Ferraro
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.wildfly.clustering.function.Consumer

    org.wildfly.clustering.function.Consumer.ExceptionLogger<E>
  • Field Summary

    Fields inherited from interface org.wildfly.clustering.function.Consumer

    EMPTY, EXCEPTION_LOGGER, EXCEPTION_LOGGERS
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<Map.Entry<K,V>> filter)
     
    static <I, K extends org.wildfly.clustering.cache.Key<I>, V, M>
    org.wildfly.clustering.function.Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<Map.Entry<K,V>>>
    cancel(org.infinispan.Cache<K,V> cache, Predicate<Map.Entry<? super K, ? super V>> filter, CacheEntryScheduler<K,V> scheduler)
    Creates a task that cancels entries matching the specified filter.
    static <I, K extends org.wildfly.clustering.cache.Key<I>, V, M>
    org.wildfly.clustering.function.Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<Map.Entry<K,V>>>
    schedule(org.infinispan.Cache<K,V> cache, Predicate<Map.Entry<? super K, ? super V>> filter, CacheEntryScheduler<K,V> scheduler)
    Creates a task that schedules entries matching the specified filter.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.wildfly.clustering.function.Consumer

    andThen, compose, compose, handle, thenReturn, when, withDefault, withMonitor
  • Method Details

    • schedule

      public static <I, K extends org.wildfly.clustering.cache.Key<I>, V, M> org.wildfly.clustering.function.Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<Map.Entry<K,V>>> schedule(org.infinispan.Cache<K,V> cache, Predicate<Map.Entry<? super K, ? super V>> filter, CacheEntryScheduler<K,V> scheduler)
      Creates a task that schedules entries matching the specified filter.
      Type Parameters:
      I - the cache key identifier type
      K - the cache key type
      V - the cache value type
      M - the group member type
      Parameters:
      cache - an embedded cache
      filter - a cache entry filter
      scheduler - the target scheduler
      Returns:
      a task that schedules entries matching the specified filter.
    • cancel

      public static <I, K extends org.wildfly.clustering.cache.Key<I>, V, M> org.wildfly.clustering.function.Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<Map.Entry<K,V>>> cancel(org.infinispan.Cache<K,V> cache, Predicate<Map.Entry<? super K, ? super V>> filter, CacheEntryScheduler<K,V> scheduler)
      Creates a task that cancels entries matching the specified filter.
      Type Parameters:
      I - the cache key identifier type
      K - the cache key type
      V - the cache value type
      M - the group member type
      Parameters:
      cache - an embedded cache
      filter - a cache entry filter
      scheduler - the target scheduler
      Returns:
      a task that cancels entries matching the specified filter.
    • accept

      public void accept(org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<Map.Entry<K,V>> filter)
      Specified by:
      accept in interface Consumer<K>