public abstract class AbstractIoServiceFactory extends AbstractCloseable implements IoServiceFactory, ExecutorServiceCarrier
AbstractCloseable.State
closeFuture, lock, state
log
Modifier | Constructor and Description |
---|---|
protected |
AbstractIoServiceFactory(FactoryManager factoryManager,
ExecutorService executorService,
boolean shutdownOnExit) |
Modifier and Type | Method and Description |
---|---|
protected void |
doCloseImmediately()
doCloseImmediately is called once and only once
with state == Immediate
|
ExecutorService |
getExecutorService() |
FactoryManager |
getFactoryManager() |
static int |
getNioWorkers(FactoryManager manager) |
boolean |
isShutdownOnExit() |
builder, close, doCloseGracefully, isClosed, isClosing, preClose
close, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAcceptor, createConnector
protected AbstractIoServiceFactory(FactoryManager factoryManager, ExecutorService executorService, boolean shutdownOnExit)
public final FactoryManager getFactoryManager()
public final ExecutorService getExecutorService()
getExecutorService
in interface ExecutorServiceCarrier
public final 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)protected void doCloseImmediately()
AbstractCloseable
doCloseImmediately is called once and only once with state == Immediate
Overriding methods should always call the base implementation. It may be called concurrently while preClose() or doCloseGracefully is executing
doCloseImmediately
in class AbstractCloseable
public static int getNioWorkers(FactoryManager manager)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.