Class SocksConnectingIOReactor

  • All Implemented Interfaces:
    org.apache.http.nio.reactor.ConnectingIOReactor, org.apache.http.nio.reactor.IOReactor

    public class SocksConnectingIOReactor
    extends org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor
    This IOReactor makes sure that the supplied IOEventDispatch is decorated with SocksIOEventDispatch.
    • Field Summary

      • Fields inherited from class org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor

        auditLog, config, exceptionHandler, interestOpsQueueing, params, selector, selectTimeout, status
    • Constructor Summary

      Constructors 
      Constructor Description
      SocksConnectingIOReactor()
      Creates an instance of SocksConnectingIOReactor with default configuration.
      SocksConnectingIOReactor​(org.apache.http.impl.nio.reactor.IOReactorConfig config)
      Creates an instance of SocksConnectingIOReactor with the given configuration.
      SocksConnectingIOReactor​(org.apache.http.impl.nio.reactor.IOReactorConfig config, ThreadFactory threadFactory)
      Creates an instance of SocksConnectingIOReactor with the given configuration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.apache.http.nio.reactor.IOEventDispatch eventDispatch)  
      • Methods inherited from class org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor

        cancelRequests, connect, processEvents
      • Methods inherited from class org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor

        addChannel, addExceptionEvent, addExceptionEvent, awaitShutdown, doShutdown, getAuditLog, getStatus, prepareSocket, registerChannel, setExceptionHandler, shutdown, shutdown
      • Methods inherited from interface org.apache.http.nio.reactor.IOReactor

        getStatus, shutdown, shutdown
    • Constructor Detail

      • SocksConnectingIOReactor

        public SocksConnectingIOReactor​(org.apache.http.impl.nio.reactor.IOReactorConfig config,
                                        ThreadFactory threadFactory)
                                 throws org.apache.http.nio.reactor.IOReactorException
        Creates an instance of SocksConnectingIOReactor with the given configuration.
        Parameters:
        config - I/O reactor configuration.
        threadFactory - the factory to create threads. Can be null.
        Throws:
        org.apache.http.nio.reactor.IOReactorException - in case if a non-recoverable I/O error.
      • SocksConnectingIOReactor

        public SocksConnectingIOReactor​(org.apache.http.impl.nio.reactor.IOReactorConfig config)
                                 throws org.apache.http.nio.reactor.IOReactorException
        Creates an instance of SocksConnectingIOReactor with the given configuration.
        Parameters:
        config - I/O reactor configuration. Can be null.
        Throws:
        org.apache.http.nio.reactor.IOReactorException - in case if a non-recoverable I/O error.
      • SocksConnectingIOReactor

        public SocksConnectingIOReactor()
                                 throws org.apache.http.nio.reactor.IOReactorException
        Creates an instance of SocksConnectingIOReactor with default configuration.
        Throws:
        org.apache.http.nio.reactor.IOReactorException - in case if a non-recoverable I/O error.
    • Method Detail

      • execute

        public void execute​(org.apache.http.nio.reactor.IOEventDispatch eventDispatch)
                     throws InterruptedIOException,
                            org.apache.http.nio.reactor.IOReactorException
        Specified by:
        execute in interface org.apache.http.nio.reactor.IOReactor
        Overrides:
        execute in class org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor
        Throws:
        InterruptedIOException
        org.apache.http.nio.reactor.IOReactorException