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
Description copied from interface:SchedulerSchedules a task for the object with the specified identifier, using the specified metaData -
cancel
Description copied from interface:SchedulerCancels a previously scheduled task for the object with the specified identifier. -
contains
Description copied from interface:SchedulerIndicates whether the entry with the specified identifier is scheduled. -
stream
Description copied from interface:SchedulerReturns a stream of scheduled item identifiers. -
apply
-
close
public void close()
-