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, wait
create
protected 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 ExecutorServiceCarrier
public void setExecutorService(ExecutorService service)
setExecutorService
in interface ExecutorServiceConfigurer
public boolean isShutdownOnExit()
isShutdownOnExit
in interface ExecutorServiceCarrier
true
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 ExecutorServiceConfigurer
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.