Package ai.preferred.venom.socks
Class SocksConnectingIOReactor
- java.lang.Object
-
- org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor
-
- org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor
-
- ai.preferred.venom.socks.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 suppliedIOEventDispatch
is decorated withSocksIOEventDispatch
.
-
-
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
-
-
-
-
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 benull
.- 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 benull
.- 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 interfaceorg.apache.http.nio.reactor.IOReactor
- Overrides:
execute
in classorg.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor
- Throws:
InterruptedIOException
org.apache.http.nio.reactor.IOReactorException
-
-