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

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

public class DefaultConnectingIOReactor
extends AbstractMultiworkerIOReactor
implements ConnectingIOReactor


Constructor Summary
DefaultConnectingIOReactor(int workerCount, HttpParams params)
           
DefaultConnectingIOReactor(int workerCount, ThreadFactory threadFactory, HttpParams params)
           
 
Method Summary
 SessionRequest connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, java.lang.Object attachment, SessionRequestCallback callback)
           
 void execute(IOEventDispatch eventDispatch)
           
protected  void prepareSocket(java.net.Socket socket)
           
 void shutdown()
           
 
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor
addChannel, getSelectTimeout, startWorkers, stopWorkers, verifyWorkers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConnectingIOReactor

public DefaultConnectingIOReactor(int workerCount,
                                  ThreadFactory threadFactory,
                                  HttpParams params)
                           throws IOReactorException
Throws:
IOReactorException

DefaultConnectingIOReactor

public DefaultConnectingIOReactor(int workerCount,
                                  HttpParams params)
                           throws IOReactorException
Throws:
IOReactorException
Method Detail

execute

public void execute(IOEventDispatch eventDispatch)
             throws java.io.InterruptedIOException,
                    IOReactorException
Specified by:
execute in interface IOReactor
Throws:
java.io.InterruptedIOException
IOReactorException

prepareSocket

protected void prepareSocket(java.net.Socket socket)
                      throws java.io.IOException
Throws:
java.io.IOException

connect

public SessionRequest connect(java.net.SocketAddress remoteAddress,
                              java.net.SocketAddress localAddress,
                              java.lang.Object attachment,
                              SessionRequestCallback callback)
Specified by:
connect in interface ConnectingIOReactor

shutdown

public void shutdown()
              throws java.io.IOException
Specified by:
shutdown in interface IOReactor
Throws:
java.io.IOException


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