| Modifier and Type | Field and Description |
|---|---|
| private final Resolver | |
| private final DefaultConnectingIOReactor |
| Access | Constructor and Description |
|---|---|
| public | AsyncRequester(final IOEventHandlerFactory eventHandlerFactory, final IOReactorConfig ioReactorConfig, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final Callback<IOSession> sessionShutdownCallback, final Resolver<HttpHost, InetSocketAddress> addressResolver)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitShutdown(final TimeValue
wait time. waitTime)Implements org. |
| public void | close(final CloseMode
How to close the receiver. closeMode)Implements org. |
| public void | close()
Implements java. |
| pack-priv ConnectionInitiator | |
| public IOReactorStatus | getStatus()
Implements org. |
| public void | initiateShutdown()
Implements org. |
| public Future | requestSession(final HttpHost host, final Timeout timeout, final Object attachment, final FutureCallback<IOSession> callback)
|
| public void |
| addressResolver | back to summary |
|---|---|
| private final Resolver<HttpHost, InetSocketAddress> addressResolver | |
| ioReactor | back to summary |
|---|---|
| private final DefaultConnectingIOReactor ioReactor | |
| AsyncRequester | back to summary |
|---|---|
public AsyncRequester(final IOEventHandlerFactory eventHandlerFactory, final IOReactorConfig ioReactorConfig, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final Callback<IOSession> sessionShutdownCallback, final Resolver<HttpHost, InetSocketAddress> addressResolver)
| |
| awaitShutdown | back to summary |
|---|---|
| public void awaitShutdown(final TimeValue waitTime) throws InterruptedException Implements org. Doc from org. Blocks for the given period of time in milliseconds awaiting the completion of the reactor shutdown. | |
| close | back to summary |
|---|---|
| public void close(final CloseMode closeMode) Implements org. Doc from org. Shuts down the I/O reactor either gracefully or immediately. During graceful shutdown individual I/O sessions should be informed about imminent termination and be given a grace period to complete the ongoing I/O sessions. During immediate shutdown all ongoing I/O sessions get aborted immediately.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getIOReactor | back to summary |
|---|---|
| pack-priv ConnectionInitiator getIOReactor() Implements abstract org.
| |
| getStatus | back to summary |
|---|---|
| public IOReactorStatus getStatus() Implements org. Doc from org. Returns the current status of the reactor.
| |
| initiateShutdown | back to summary |
|---|---|
| public void initiateShutdown() Implements org. Doc from org. Initiates shutdown of the reactor without blocking. The reactor is expected to terminate all active connections, to shut down itself and to release system resources it currently holds
| |
| requestSession | back to summary |
|---|---|
| public Future | |
| start | back to summary |
|---|---|
| public void start() Implements org. Doc from org. Starts I/O reactor.
| |