public class DefaultExecutorFactory extends java.lang.Object implements ExecutorFactory, Stoppable
| Constructor and Description |
|---|
DefaultExecutorFactory() |
| Modifier and Type | Method and Description |
|---|---|
StoppableExecutor |
create(java.lang.String displayName)
Creates an executor which can run multiple tasks concurrently.
|
protected java.util.concurrent.ExecutorService |
createExecutor(java.lang.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(java.lang.String displayName)
ExecutorFactorycreate in interface ExecutorFactorydisplayName - The display name for the this executor. Used for thread names, logging and error message.protected java.util.concurrent.ExecutorService createExecutor(java.lang.String displayName)
Copyright © 2013. All rights reserved