org.apache.http.impl.nio.reactor
Class BaseIOReactor
java.lang.Object
org.apache.http.impl.nio.reactor.AbstractIOReactor
org.apache.http.impl.nio.reactor.BaseIOReactor
- All Implemented Interfaces:
- IOReactor
public class BaseIOReactor
- extends AbstractIOReactor
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIOReactor |
addChannel, awaitShutdown, closeActiveChannels, closeNewChannels, closeSessions, execute, getStatus, gracefulShutdown, hardShutdown, processEvent, queueClosedSession, shutdown, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseIOReactor
public BaseIOReactor(long selectTimeout)
throws IOReactorException
- Throws:
IOReactorException
execute
public void execute(IOEventDispatch eventDispatch)
throws java.io.InterruptedIOException,
IOReactorException
- Throws:
java.io.InterruptedIOException
IOReactorException
setExceptionHandler
public void setExceptionHandler(IOReactorExceptionHandler exceptionHandler)
handleRuntimeException
protected void handleRuntimeException(java.lang.RuntimeException ex)
acceptable
protected void acceptable(java.nio.channels.SelectionKey key)
- Specified by:
acceptable
in class AbstractIOReactor
connectable
protected void connectable(java.nio.channels.SelectionKey key)
- Specified by:
connectable
in class AbstractIOReactor
readable
protected void readable(java.nio.channels.SelectionKey key)
- Specified by:
readable
in class AbstractIOReactor
writable
protected void writable(java.nio.channels.SelectionKey key)
- Specified by:
writable
in class AbstractIOReactor
validate
protected void validate(java.util.Set<java.nio.channels.SelectionKey> keys)
- Specified by:
validate
in class AbstractIOReactor
timeoutCheck
protected void timeoutCheck(java.nio.channels.SelectionKey key,
long now)
- Specified by:
timeoutCheck
in class AbstractIOReactor
sessionCreated
protected void sessionCreated(java.nio.channels.SelectionKey key,
IOSession session)
- Specified by:
sessionCreated
in class AbstractIOReactor
getSession
protected IOSession getSession(java.nio.channels.SelectionKey key)
- Specified by:
getSession
in class AbstractIOReactor
sessionClosed
protected void sessionClosed(IOSession session)
- Specified by:
sessionClosed
in class AbstractIOReactor
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.