public interface AsyncHandlerExtensions
AsyncHandler
.Modifier and Type | Method and Description |
---|---|
void |
onConnectionOffer(Channel connection)
Notify the callback when trying to offer a connection to the pool.
|
void |
onConnectionPoolAttempt()
Notify the callback when trying to fetch a connection from the pool.
|
void |
onConnectionPooled(Channel connection)
Notify the callback when a new connection was successfully fetched from the pool.
|
void |
onHostnameResolutionAttempt(java.lang.String name)
Notify the callback before hostname resolution
|
void |
onHostnameResolutionFailure(java.lang.String name,
java.lang.Throwable cause)
Notify the callback after hostname resolution failed.
|
void |
onHostnameResolutionSuccess(java.lang.String name,
java.util.List<java.net.InetSocketAddress> addresses)
Notify the callback after hostname resolution was successful.
|
void |
onRequestSend(NettyRequest request)
Notify the callback when a request is being written on the channel.
|
void |
onRetry()
Notify the callback every time a request is being retried.
|
void |
onTcpConnectAttempt(java.net.InetSocketAddress remoteAddress)
Notify the callback when trying to open a new connection.
|
void |
onTcpConnectFailure(java.net.InetSocketAddress remoteAddress,
java.lang.Throwable cause)
Notify the callback after a failed connect.
|
void |
onTcpConnectSuccess(java.net.InetSocketAddress remoteAddress,
Channel connection)
Notify the callback after a successful connect
|
void |
onTlsHandshakeAttempt()
Notify the callback before TLS handshake
|
void |
onTlsHandshakeFailure(java.lang.Throwable cause)
Notify the callback after the TLS failed
|
void |
onTlsHandshakeSuccess()
Notify the callback after the TLS was successful
|
void onHostnameResolutionAttempt(java.lang.String name)
name
- the name to be resolvedvoid onHostnameResolutionSuccess(java.lang.String name, java.util.List<java.net.InetSocketAddress> addresses)
name
- the name to be resolvedaddresses
- the resolved addressesvoid onHostnameResolutionFailure(java.lang.String name, java.lang.Throwable cause)
name
- the name to be resolvedcause
- the failure causevoid onTcpConnectAttempt(java.net.InetSocketAddress remoteAddress)
remoteAddress
- the address we try to connect tovoid onTcpConnectSuccess(java.net.InetSocketAddress remoteAddress, Channel connection)
remoteAddress
- the address we try to connect toconnection
- the connectionvoid onTcpConnectFailure(java.net.InetSocketAddress remoteAddress, java.lang.Throwable cause)
remoteAddress
- the address we try to connect tocause
- the cause of the failurevoid onTlsHandshakeAttempt()
void onTlsHandshakeSuccess()
void onTlsHandshakeFailure(java.lang.Throwable cause)
cause
- the cause of the failurevoid onConnectionPoolAttempt()
void onConnectionPooled(Channel connection)
connection
- the connectionvoid onConnectionOffer(Channel connection)
connection
- the connectionvoid onRequestSend(NettyRequest request)
request
- the real request object as passed to the providervoid onRetry()
Copyright © 2018. All Rights Reserved.