Class PrimaryOwnerScheduler<I,M>
java.lang.Object
org.wildfly.clustering.server.infinispan.scheduler.PrimaryOwnerScheduler<I,M>
- Type Parameters:
I- the identifier type of scheduled entriesM- the meta data type
- All Implemented Interfaces:
AutoCloseable,Function<CompletionStage<Collection<I>>,,Stream<I>> Scheduler<I,M>
public class PrimaryOwnerScheduler<I,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(PrimaryOwnerSchedulerConfiguration<I, M> configuration) -
Method Summary
Modifier and TypeMethodDescriptionapply(CompletionStage<Collection<I>> stage) voidCancels a previously scheduled task for the object with the specified identifier.voidclose()booleanIndicates whether the entry with the specified identifier is scheduled.voidSchedules a task for the object with the specified identifier, using the specified metaDatastream()Returns a stream of scheduled item identifiers.
-
Constructor Details
-
PrimaryOwnerScheduler
-
-
Method Details
-
schedule
-
cancel
-
contains
Description copied from interface:SchedulerIndicates whether the entry with the specified identifier is scheduled. -
stream
-
apply
-
close
-