public interface AsyncHandlerExtensions
AsyncHandler
.
For now, those methods are in a dedicated interface in order not to break the
existing API, but could be merged into one of the existing ones in AHC 2.Modifier and Type | Method and Description |
---|---|
void |
onConnectionFailure(InetAddress address)
Notify the callback after a failed connect.
|
void |
onConnectionOffer(io.netty.channel.Channel connection)
Notify the callback when trying to offer a connection to the pool.
|
void |
onConnectionOpen()
Notify the callback when trying to open a new connection.
|
void |
onConnectionPool()
Notify the callback when trying to fetch a connection from the pool.
|
void |
onConnectionPooled(io.netty.channel.Channel connection)
Notify the callback when a new connection was successfully fetched from
the pool.
|
void |
onConnectionSuccess(io.netty.channel.Channel connection,
InetAddress address)
Notify the callback after a successful connect
|
void |
onDnsResolved(NameResolution[] addresses)
Notify the callback after DNS resolution has completed.
|
void |
onRequestSend(NettyRequest request)
Notify the callback when a request is being written on the wire.
|
void |
onRetry()
Notify the callback every time a request is being retried.
|
void |
onSslHandshakeCompleted()
Notify the callback when the SSL handshake performed to establish an
HTTPS connection has been completed.
|
void onConnectionOpen()
void onDnsResolved(NameResolution[] addresses)
addresses
- the resolved addressesvoid onConnectionSuccess(io.netty.channel.Channel connection, InetAddress address)
connection
- the connectionaddress
- the connected addressesvoid onConnectionFailure(InetAddress address)
address
- the tentative addressesvoid onConnectionPool()
void onConnectionPooled(io.netty.channel.Channel connection)
connection
- the connectionvoid onConnectionOffer(io.netty.channel.Channel connection)
connection
- the connectionvoid onRequestSend(NettyRequest request)
request
- the real request object as passed to the providervoid onRetry()
void onSslHandshakeCompleted()
Copyright © 2015. All Rights Reserved.