public abstract class AbstractIoServiceFactory extends CloseableUtils.AbstractCloseable implements IoServiceFactory, ExecutorServiceCarrier
CloseableUtils.AbstractCloseable.StatecloseFuture, lock, statelog| 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, preCloseclose, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAcceptor, createConnectorprotected AbstractIoServiceFactory(FactoryManager factoryManager, ExecutorService executorService, boolean shutdownOnExit)
public final FactoryManager getFactoryManager()
public final ExecutorService getExecutorService()
getExecutorService in interface ExecutorServiceCarrierpublic final boolean isShutdownOnExit()
isShutdownOnExit in interface ExecutorServiceCarriertrue then the ExecutorService.shutdownNow()
will be called (unless it is an internally allocated service which is always
closed)protected void doCloseImmediately()
CloseableUtils.AbstractCloseabledoCloseImmediately 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 CloseableUtils.AbstractCloseablepublic static int getNioWorkers(FactoryManager manager)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.