public class BaseIOReactor extends AbstractIOReactor
AbstractIOReactor that serves as a base
for more advanced IOReactor
implementations. This class adds support for the I/O event dispatching
using IOEventDispatch, management of buffering sessions, and
session timeout handling.| Constructor and Description |
|---|
BaseIOReactor(long selectTimeout)
Creates new BaseIOReactor instance.
|
BaseIOReactor(long selectTimeout,
boolean interestOpsQueueing)
Creates new BaseIOReactor instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(IOEventDispatch eventDispatch)
Activates the I/O reactor.
|
void |
setExceptionHandler(IOReactorExceptionHandler exceptionHandler)
Sets exception handler for this I/O reactor.
|
addChannel, awaitShutdown, getInterestOpsQueueing, getStatus, gracefulShutdown, hardShutdown, shutdown, shutdownpublic BaseIOReactor(long selectTimeout)
throws IOReactorException
selectTimeout - the select timeout.IOReactorException - in case if a non-recoverable I/O error.public BaseIOReactor(long selectTimeout,
boolean interestOpsQueueing)
throws IOReactorException
selectTimeout - the select timeout.interestOpsQueueing - Ops queueing flag.IOReactorException - in case if a non-recoverable I/O error.public void execute(IOEventDispatch eventDispatch) throws InterruptedIOException, IOReactorException
IOEventDispatch.eventDispatch - the I/O event dispatch.InterruptedIOException - if the dispatch thread is interrupted.IOReactorException - in case if a non-recoverable I/O error.public void setExceptionHandler(IOReactorExceptionHandler exceptionHandler)
exceptionHandler - the exception handler.Copyright © 2010 - 2020 Adobe. All Rights Reserved