org.apache.http.impl.nio.reactor
Class DefaultListeningIOReactor

java.lang.Object
  extended by org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor
      extended by org.apache.http.impl.nio.reactor.DefaultListeningIOReactor
All Implemented Interfaces:
IOReactor, ListeningIOReactor

public class DefaultListeningIOReactor
extends AbstractMultiworkerIOReactor
implements ListeningIOReactor


Field Summary
 
Fields inherited from class org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor
exceptionHandler, params, selector, selectTimeout, status
 
Fields inherited from interface org.apache.http.nio.reactor.IOReactor
ACTIVE, INACTIVE, SHUT_DOWN, SHUTTING_DOWN
 
Constructor Summary
DefaultListeningIOReactor(int workerCount, org.apache.http.params.HttpParams params)
           
DefaultListeningIOReactor(int workerCount, org.apache.http.util.concurrent.ThreadFactory threadFactory, org.apache.http.params.HttpParams params)
           
 
Method Summary
 java.net.SocketAddress listen(java.net.SocketAddress address)
           
protected  void processEvents(int readyCount)
           
 
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor
addChannel, execute, getStatus, prepareSocket, registerChannel, setExceptionHandler, shutdown, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.nio.reactor.IOReactor
execute, getStatus, shutdown, shutdown
 

Constructor Detail

DefaultListeningIOReactor

public DefaultListeningIOReactor(int workerCount,
                                 org.apache.http.util.concurrent.ThreadFactory threadFactory,
                                 org.apache.http.params.HttpParams params)
                          throws IOReactorException
Throws:
IOReactorException

DefaultListeningIOReactor

public DefaultListeningIOReactor(int workerCount,
                                 org.apache.http.params.HttpParams params)
                          throws IOReactorException
Throws:
IOReactorException
Method Detail

processEvents

protected void processEvents(int readyCount)
                      throws IOReactorException
Specified by:
processEvents in class AbstractMultiworkerIOReactor
Throws:
IOReactorException

listen

public java.net.SocketAddress listen(java.net.SocketAddress address)
                              throws java.io.IOException
Specified by:
listen in interface ListeningIOReactor
Throws:
java.io.IOException


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.