public class Nio2ServiceFactoryFactory extends AbstractIoServiceFactoryFactory
log
Constructor and Description |
---|
Nio2ServiceFactoryFactory() |
Nio2ServiceFactoryFactory(ExecutorService executors,
boolean shutdownOnExit) |
Modifier and Type | Method and Description |
---|---|
IoServiceFactory |
create(FactoryManager manager) |
getExecutorService, isShutdownOnExit, setExecutorService, setShutdownOnExit
public Nio2ServiceFactoryFactory()
public Nio2ServiceFactoryFactory(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)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.