public abstract class AbstractIoServiceFactoryFactory extends AbstractLoggingBean implements IoServiceFactoryFactory, ExecutorServiceConfigurer
log| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIoServiceFactoryFactory(ExecutorService executors,
boolean shutdownOnExit) |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
getExecutorService() |
boolean |
isShutdownOnExit() |
void |
setExecutorService(ExecutorService service) |
void |
setShutdownOnExit(boolean shutdown) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateprotected AbstractIoServiceFactoryFactory(ExecutorService executors, boolean shutdownOnExit)
executors - The ExecutorService to use for spawning threads.
If null then an internal service is allocated - in which case it
is automatically shutdown regardless of the value of the shutdownOnExit
parameter valueshutdownOnExit - If true then the ExecutorService.shutdownNow()
will be called (unless it is an internally allocated service which is always
closed)public ExecutorService getExecutorService()
getExecutorService in interface ExecutorServiceCarrierpublic void setExecutorService(ExecutorService service)
setExecutorService in interface ExecutorServiceConfigurerpublic boolean isShutdownOnExit()
isShutdownOnExit in interface ExecutorServiceCarriertrue then the ExecutorService.shutdownNow()
will be called (unless it is an internally allocated service which is always
closed)public void setShutdownOnExit(boolean shutdown)
setShutdownOnExit in interface ExecutorServiceConfigurerCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.