public class Nio2ServiceFactoryFactory extends AbstractIoServiceFactoryFactory
log
Constructor and Description |
---|
Nio2ServiceFactoryFactory() |
Nio2ServiceFactoryFactory(java.util.concurrent.ExecutorService executors,
boolean shutdownOnExit) |
Modifier and Type | Method and Description |
---|---|
IoServiceFactory |
create(FactoryManager manager) |
getExecutorService, isShutdownOnExit, setExecutorService, setShutdownOnExit
getSimplifiedLogger
public Nio2ServiceFactoryFactory()
public Nio2ServiceFactoryFactory(java.util.concurrent.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 IoServiceFactory create(FactoryManager manager)