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.
More additional hooks might come, such as:
Modifier and Type | Method and Description |
---|---|
void |
onConnectionOpen()
Notify the callback when a new connection was successfully opened.
|
void |
onConnectionPooled()
Notify the callback when a new connection was successfully fetched from the pool.
|
void |
onDnsResolved(InetAddress address)
Notify the callback after DNS resolution has completed.
|
void |
onOpenConnection()
Notify the callback when trying to open a new connection.
|
void |
onPoolConnection()
Notify the callback when trying to fetch a connection from the pool.
|
void |
onRetry()
Notify the callback every time a request is being retried.
|
void |
onSendRequest(Object request)
Notify the callback when a request is about to be written on the wire.
|
void |
onSslHandshakeCompleted()
Notify the callback when the SSL handshake performed to establish an HTTPS connection has been completed.
|
void onOpenConnection()
void onConnectionOpen()
void onPoolConnection()
void onConnectionPooled()
void onSendRequest(Object request)
request
- the real request object (underlying provider model)void onRetry()
void onDnsResolved(InetAddress address)
address
- the resolved addressvoid onSslHandshakeCompleted()
Copyright © 2016. All Rights Reserved.