public class ThreadedResultProcessor extends Object implements ResultProcessor, Interruptible
| Constructor and Description |
|---|
ThreadedResultProcessor(ExecutorService executor) |
ThreadedResultProcessor(int numThreads) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Worker |
getWorker()
Get the result collector in use
|
void |
interruptAndClose()
Interrupt a thread and then close it.
|
public ThreadedResultProcessor(int numThreads)
public ThreadedResultProcessor(ExecutorService executor)
public Worker getWorker()
ResultProcessorgetWorker in interface ResultProcessorpublic void interruptAndClose()
throws InterruptedException
InterruptibleinterruptAndClose in interface InterruptibleInterruptedExceptionpublic void close()
throws InterruptedException
close in interface AutoCloseableInterruptedExceptionCopyright © 2018. All rights reserved.