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<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<K>>, org.wildfly.clustering.function.Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<K>>
public class CacheKeysTask<K,V>
extends Object
implements org.wildfly.clustering.function.Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<K>>
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 TypeMethodDescriptionvoidstatic <K,V> org.wildfly.clustering.function.Consumer <org.wildfly.clustering.cache.infinispan.embedded.distribution.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 org.wildfly.clustering.function.Consumer
andThen, compose, compose, handle, thenReturn, when, withDefault, withMonitor
-
Method Details
-
cancel
public static <K,V> org.wildfly.clustering.function.Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.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
-