public class ThreadedWorkerManager extends Object implements WorkerManager
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadedWorkerManager.AbstractManagedBlockingWorker
This abstract class exposes the methods to allow submitting tasks for
multithreading and implements inline blocking method.
|
| Constructor and Description |
|---|
ThreadedWorkerManager(ExecutorService executor)
Constructs a threaded worker manager with a specified executor.
|
| 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 ThreadedWorkerManager(ExecutorService executor)
executor - An executor servicepublic final Worker getWorker()
WorkerManagergetWorker in interface WorkerManagerpublic final void interruptAndClose()
InterruptibleinterruptAndClose in interface Interruptiblepublic final void close()
close in interface AutoCloseableCopyright © 2019. All rights reserved.