public interface IndexerScheduler
Indexer
jobs, typically in a multi-threaded way using an ExecutorService
.Modifier and Type | Interface and Description |
---|---|
static interface |
IndexerScheduler.Factory |
Modifier and Type | Method and Description |
---|---|
Stream<CompletableFuture<org.uberfire.commons.data.Pair<String,List<IndexEvent>>>> |
schedule(ExecutorService executor) |
Stream<CompletableFuture<org.uberfire.commons.data.Pair<String,List<IndexEvent>>>> schedule(ExecutorService executor)
executor
- An ExecutorService
used for scheduling any asynchronous jobs. Must not be null.CompletableFutures
for all jobs scheduled. Never null.
Note that just because a CompletableFuture
is 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.Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.