public class AsyncRequester extends Object implements ConnectionInitiator
| Constructor and Description |
|---|
AsyncRequester(IOReactorConfig ioReactorConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitShutdown(TimeValue waitTime) |
void |
close() |
Future<IOSession> |
connect(NamedEndpoint remoteEndpoint,
SocketAddress remoteAddress,
SocketAddress localAddress,
Timeout timeout,
Object attachment,
FutureCallback<IOSession> callback) |
protected void |
execute(IOEventHandlerFactory ioEventHandlerFactory) |
IOReactorStatus |
getStatus() |
void |
initiateShutdown() |
Future<IOSession> |
requestSession(HttpHost host,
Timeout timeout,
FutureCallback<IOSession> callback) |
void |
shutdown(TimeValue graceTime) |
public AsyncRequester(IOReactorConfig ioReactorConfig)
public Future<IOSession> requestSession(HttpHost host, Timeout timeout, FutureCallback<IOSession> callback)
public Future<IOSession> connect(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback)
connect in interface ConnectionInitiatorprotected void execute(IOEventHandlerFactory ioEventHandlerFactory) throws IOException
IOExceptionpublic IOReactorStatus getStatus()
public void awaitShutdown(TimeValue waitTime) throws InterruptedException
InterruptedExceptionpublic void initiateShutdown()
public void shutdown(TimeValue graceTime)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.