Class CacheEntriesTask<K,V>
java.lang.Object
org.wildfly.clustering.server.infinispan.scheduler.CacheEntriesTask<K,V>
- Type Parameters:
K- cache key typeV- 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>>>
-
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 TypeMethodDescriptionvoidaccept(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, waitMethods 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 typeK- the cache key typeV- the cache value typeM- the group member type- Parameters:
cache- an embedded cachefilter- a cache entry filterscheduler- 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 typeK- the cache key typeV- the cache value typeM- the group member type- Parameters:
cache- an embedded cachefilter- a cache entry filterscheduler- the target scheduler- Returns:
- a task that cancels entries matching the specified filter.
-
accept
-