public class DefaultExecutorFactory extends Object implements ExecutorFactory, Stoppable
| Constructor and Description |
|---|
DefaultExecutorFactory() |
| Modifier and Type | Method and Description |
|---|---|
StoppableExecutor |
create(String displayName)
Creates an executor which can run multiple tasks concurrently.
|
protected ExecutorService |
createExecutor(String displayName) |
void |
stop()
Requests a graceful stop of this object.
|
public void stop()
StoppableRequests a graceful stop of this object. Blocks until all concurrent activity has been completed.
If this object has already been stopped, this method does nothing.
public StoppableExecutor create(String displayName)
ExecutorFactorycreate in interface ExecutorFactorydisplayName - The display name for the this executor. Used for thread names, logging and error message.protected ExecutorService createExecutor(String displayName)
Copyright © 2013. All rights reserved