| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ManagedConnPool | |
| private final Timeout | |
| private final TlsStrategy |
| Access | Constructor and Description |
|---|---|
| public | HttpAsyncRequester(final IOReactorConfig ioReactorConfig, final IOEventHandlerFactory eventHandlerFactory, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final ManagedConnPool<HttpHost, IOSession> connPool, final TlsStrategy tlsStrategy, final Timeout handshakeTimeout)
Use |
| public | HttpAsyncRequester(final IOReactorConfig ioReactorConfig, final IOEventHandlerFactory eventHandlerFactory, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final ManagedConnPool<HttpHost, IOSession> connPool)
Use |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Future | connect(final HttpHost host, final Timeout timeout, final Object attachment, final FutureCallback<AsyncClientEndpoint> callback)
|
| public Future | |
| protected Future | doConnect(final HttpHost host, final Timeout timeout, final Object attachment, final FutureCallback<AsyncClientEndpoint> callback)
|
| protected void | doTlsUpgrade(final ProtocolIOSession ioSession, final NamedEndpoint endpoint, final FutureCallback<ProtocolIOSession> callback)
|
| public void | execute(final AsyncClientExchangeHandler exchangeHandler, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final Timeout timeout, final HttpContext executeContext)
|
| public void | execute(final AsyncClientExchangeHandler exchangeHandler, final Timeout timeout, final HttpContext executeContext)
|
| public final <T> Future | execute(final AsyncRequestProducer requestProducer, final AsyncResponseConsumer<T> responseConsumer, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final Timeout timeout, final HttpContext context, final FutureCallback<T> callback)
|
| public final <T> Future | execute(final AsyncRequestProducer requestProducer, final AsyncResponseConsumer<T> responseConsumer, final Timeout timeout, final HttpContext context, final FutureCallback<T> callback)
|
| public final <T> Future | execute(final AsyncRequestProducer requestProducer, final AsyncResponseConsumer<T> responseConsumer, final Timeout timeout, final FutureCallback<T> callback)
|
| public int | |
| public int | getMaxPerRoute(final HttpHost route)
Implements org. |
| public int | |
| public Set | |
| public PoolStats | |
| public PoolStats | |
| public void | setDefaultMaxPerRoute(final int max)
Implements org. |
| public void | setMaxPerRoute(final HttpHost route, final int max)
Implements org. |
| public void |
| connPool | back to summary |
|---|---|
| private final ManagedConnPool<HttpHost, IOSession> connPool | |
| handshakeTimeout | back to summary |
|---|---|
| private final Timeout handshakeTimeout | |
| tlsStrategy | back to summary |
|---|---|
| private final TlsStrategy tlsStrategy | |
| HttpAsyncRequester | back to summary |
|---|---|
| public HttpAsyncRequester(final IOReactorConfig ioReactorConfig, final IOEventHandlerFactory eventHandlerFactory, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final ManagedConnPool<HttpHost, IOSession> connPool, final TlsStrategy tlsStrategy, final Timeout handshakeTimeout) Use
| |
| HttpAsyncRequester | back to summary |
|---|---|
| public HttpAsyncRequester(final IOReactorConfig ioReactorConfig, final IOEventHandlerFactory eventHandlerFactory, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final ManagedConnPool<HttpHost, IOSession> connPool) Use
| |
| closeExpired | back to summary |
|---|---|
| public void closeExpired() Implements org.
| |
| closeIdle | back to summary |
|---|---|
| public void closeIdle(final TimeValue idleTime) Implements org.
| |
| connect | back to summary |
|---|---|
| public Future | |
| connect | back to summary |
|---|---|
| public Future | |
| doConnect | back to summary |
|---|---|
| protected Future | |
| doTlsUpgrade | back to summary |
|---|---|
| protected void doTlsUpgrade(final ProtocolIOSession ioSession, final NamedEndpoint endpoint, final FutureCallback<ProtocolIOSession> callback) | |
| execute | back to summary |
|---|---|
| public void execute(final AsyncClientExchangeHandler exchangeHandler, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final Timeout timeout, final HttpContext executeContext) | |
| execute | back to summary |
|---|---|
| public void execute(final AsyncClientExchangeHandler exchangeHandler, final Timeout timeout, final HttpContext executeContext) | |
| execute | back to summary |
|---|---|
| public final <T> Future | |
| execute | back to summary |
|---|---|
| public final <T> Future | |
| execute | back to summary |
|---|---|
| public final <T> Future | |
| getDefaultMaxPerRoute | back to summary |
|---|---|
| public int getDefaultMaxPerRoute() Implements org.
| |
| getMaxPerRoute | back to summary |
|---|---|
| public int getMaxPerRoute(final HttpHost route) Implements org.
| |
| getMaxTotal | back to summary |
|---|---|
| public int getMaxTotal() Implements org.
| |
| getRoutes | back to summary |
|---|---|
| public Set Implements org.
| |
| getStats | back to summary |
|---|---|
| public PoolStats getStats(final HttpHost route) Implements org.
| |
| getTotalStats | back to summary |
|---|---|
| public PoolStats getTotalStats() Implements org.
| |
| setDefaultMaxPerRoute | back to summary |
|---|---|
| public void setDefaultMaxPerRoute(final int max) Implements org.
| |
| setMaxPerRoute | back to summary |
|---|---|
| public void setMaxPerRoute(final HttpHost route, final int max) Implements org.
| |
| setMaxTotal | back to summary |
|---|---|
| public void setMaxTotal(final int max) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AtomicReference |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(final AsyncClientExchangeHandler exchangeHandler, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final HttpContext context)
Implements abstract org. |
| private IOSession | |
| public boolean | isConnected()
Implements abstract org. |
| public void | releaseAndDiscard()
Implements abstract org. |
| public void | releaseAndReuse()
Implements abstract org. |
| public void | tlsUpgrade(final NamedEndpoint endpoint, final FutureCallback<ProtocolIOSession> callback)
Implements org. |
| poolEntryRef | back to summary |
|---|---|
| pack-priv final AtomicReference<PoolEntry<HttpHost, IOSession>> poolEntryRef | |
| InternalAsyncClientEndpoint | back to summary |
|---|---|
| pack-priv InternalAsyncClientEndpoint(final PoolEntry<HttpHost, IOSession> poolEntry) | |
| execute | back to summary |
|---|---|
| public void execute(final AsyncClientExchangeHandler exchangeHandler, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final HttpContext context) Implements abstract org. Doc from org. Initiates a message exchange using the given handler.
Once the endpoint is no longer needed it MUST be released with
| |
| getIOSession | back to summary |
|---|---|
| private IOSession getIOSession() | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Implements abstract org. Doc from org. Determines if the connection to the remote endpoint is still open and valid.
| |
| releaseAndDiscard | back to summary |
|---|---|
| public void releaseAndDiscard() Implements abstract org. Doc from org. Shuts down the underlying connection and removes it from the connection pool.
| |
| releaseAndReuse | back to summary |
|---|---|
| public void releaseAndReuse() Implements abstract org. Doc from org. Releases the underlying connection back to the connection pool as re-usable.
| |
| tlsUpgrade | back to summary |
|---|---|
| public void tlsUpgrade(final NamedEndpoint endpoint, final FutureCallback<ProtocolIOSession> callback) Implements org.
| |