Class PrimaryOwnerScheduler<I,K,M>
java.lang.Object
org.wildfly.clustering.ee.infinispan.scheduler.PrimaryOwnerScheduler<I,K,M>
- All Implemented Interfaces:
AutoCloseable,Function<CompletionStage<Collection<I>>,,Stream<I>> Scheduler<I,M>
public class PrimaryOwnerScheduler<I,K,M>
extends Object
implements Scheduler<I,M>, Function<CompletionStage<Collection<I>>,Stream<I>>
Scheduler decorator that schedules/cancels a given object on the primary owner.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionPrimaryOwnerScheduler(CommandDispatcherFactory dispatcherFactory, String name, CacheEntryScheduler<I, M> scheduler, Function<K, Node> primaryOwnerLocator, Function<I, K> keyFactory) PrimaryOwnerScheduler(CommandDispatcherFactory dispatcherFactory, String name, CacheEntryScheduler<I, M> scheduler, Function<K, Node> primaryOwnerLocator, Function<I, K> keyFactory, BiFunction<I, M, ScheduleCommand<I, M>> scheduleCommandFactory) -
Method Summary
-
Constructor Details
-
PrimaryOwnerScheduler
-
PrimaryOwnerScheduler
public PrimaryOwnerScheduler(CommandDispatcherFactory dispatcherFactory, String name, CacheEntryScheduler<I, M> scheduler, Function<K, Node> primaryOwnerLocator, Function<I, K> keyFactory, BiFunction<I, M, ScheduleCommand<I, M>> scheduleCommandFactory)
-
-
Method Details
-
schedule
-
cancel
-
contains
-
stream
-
apply
-
close
public void close()
-