Class CacheKeysTask<K,V>
java.lang.Object
org.wildfly.clustering.server.infinispan.scheduler.CacheKeysTask<K,V>
- Type Parameters:
K- cache key typeV- cache value type
- All Implemented Interfaces:
Consumer<CacheStreamFilter<K>>, Consumer<CacheStreamFilter<K>>
Invokes a task against cache entries matching a filter.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface Consumer
Consumer.ExceptionLogger<E> -
Field Summary
Fields inherited from interface Consumer
EMPTY, EXCEPTION_LOGGER, EXCEPTION_LOGGERS -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(CacheStreamFilter<K> filter) static <K,V> Consumer <CacheStreamFilter<K>> cancel(org.infinispan.Cache<K, V> cache, Predicate<? super K> filter, CacheEntryScheduler<K, V> scheduler) Creates a schedule task for keys matching the specified filter.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Consumer
andThen, compose, compose, handle, thenReturn, when, withDefault, withMonitor
-
Method Details
-
cancel
public static <K,V> Consumer<CacheStreamFilter<K>> cancel(org.infinispan.Cache<K, V> cache, Predicate<? super K> filter, CacheEntryScheduler<K, V> scheduler) Creates a schedule task for keys matching the specified filter.- Type Parameters:
K- the cache entry key typeV- the cache entry value type- Parameters:
cache- an embedded cachefilter- a cache key filterscheduler- a scheduler- Returns:
- a schedule task for keys matching the specified filter.
-
accept
-