Package | Description |
---|---|
io.github.lukehutch.fastclasspathscanner.utils |
Modifier and Type | Method and Description |
---|---|
static <U> void |
WorkQueue.runWorkQueue(Collection<U> elements,
ExecutorService executorService,
int numParallelTasks,
WorkQueue.WorkUnitProcessor<U> workUnitProcessor,
InterruptionChecker interruptionChecker,
LogNode log)
Start a work queue on the elements in the provided collection, blocking until all work units have been
completed.
|
static <U> void |
WorkQueue.runWorkQueue(Collection<U> elements,
ExecutorService executorService,
int numParallelTasks,
WorkQueue.WorkUnitProcessor<U> workUnitProcessor,
WorkQueue.WorkQueuePreStartHook<U> workQueuePreStartHook,
InterruptionChecker interruptionChecker,
LogNode log)
Start a work queue on the elements in the provided collection, blocking until all work units have been
completed.
|
Constructor and Description |
---|
WorkQueue(Collection<T> initialWorkUnits,
WorkQueue.WorkUnitProcessor<T> workUnitProcessor,
InterruptionChecker interruptionChecker,
LogNode log)
A parallel work queue.
|
Copyright © 2017. All rights reserved.