Package org.apache.hc.core5.testing.nio
Class AsyncRequester
java.lang.Object
org.apache.hc.core5.testing.nio.AsyncRequester
- All Implemented Interfaces:
AutoCloseable,ConnectionInitiator
- Direct Known Subclasses:
HttpTestClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitShutdown(TimeValue waitTime) voidclose()connect(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) protected voidexecute(IOEventHandlerFactory ioEventHandlerFactory) voidrequestSession(HttpHost host, Timeout timeout, FutureCallback<IOSession> callback) void
-
Constructor Details
-
AsyncRequester
-
-
Method Details
-
requestSession
-
connect
public Future<IOSession> connect(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) - Specified by:
connectin interfaceConnectionInitiator
-
execute
- Throws:
IOException
-
getStatus
-
awaitShutdown
- Throws:
InterruptedException
-
initiateShutdown
public void initiateShutdown() -
shutdown
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-