Package org.uberfire.ext.metadata.engine
Interface IndexerScheduler
-
public interface IndexerSchedulerScheduleIndexerjobs, typically in a multi-threaded way using anExecutorService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIndexerScheduler.Factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream<CompletableFuture<org.uberfire.commons.data.Pair<String,List<IndexEvent>>>>schedule(ExecutorService executor)
-
-
-
Method Detail
-
schedule
Stream<CompletableFuture<org.uberfire.commons.data.Pair<String,List<IndexEvent>>>> schedule(ExecutorService executor)
- Parameters:
executor- AnExecutorServiceused for scheduling any asynchronous jobs. Must not be null.- Returns:
- A stream of
CompletableFuturesfor all jobs scheduled. Never null. Note that just because aCompletableFutureis returned for a job, that does not mean the job has been scheduled yet. The scheduler is free to start jobs or terminate them with exceptions as it deems appropriate.
-
-