public interface AsyncHandlerExtensions
AsyncHandler
.Modifier and Type | Method and Description |
---|---|
void |
onConnectionOffer(io.netty.channel.Channel connection)
Notify the callback when trying to offer a connection to the pool.
|
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 |
onHostnameResolutionAttempt(String name)
Notify the callback before hostname resolution
|
void |
onHostnameResolutionFailure(String name,
Throwable cause)
Notify the callback after hostname resolution failed.
|
void |
onHostnameResolutionSuccess(String name,
List<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 |
onTcpConnect(InetSocketAddress remoteAddress)
Notify the callback when trying to open a new connection.
|
void |
onTcpConnectFailure(InetSocketAddress remoteAddress,
Throwable cause)
Notify the callback after a failed connect.
|
void |
onTcpConnectSuccess(InetSocketAddress remoteAddress,
io.netty.channel.Channel connection)
Notify the callback after a successful connect
|
void |
onTlsHandshake()
Notify the callback before TLS handshake
|
void |
onTlsHandshakeFailure(Throwable cause)
Notify the callback after the TLS failed
|
void |
onTlsHandshakeSuccess()
Notify the callback after the TLS was successful
|
void onHostnameResolutionAttempt(String name)
name
- the name to be resolvedvoid onHostnameResolutionSuccess(String name, List<InetSocketAddress> addresses)
name
- the name to be resolvedaddresses
- the resolved addressesvoid onHostnameResolutionFailure(String name, Throwable cause)
name
- the name to be resolvedcause
- the failure causevoid onTcpConnect(InetSocketAddress remoteAddress)
remoteAddress
- the address we try to connect tovoid onTcpConnectSuccess(InetSocketAddress remoteAddress, io.netty.channel.Channel connection)
remoteAddress
- the address we try to connect toconnection
- the connectionvoid onTcpConnectFailure(InetSocketAddress remoteAddress, Throwable cause)
remoteAddress
- the address we try to connect tocause
- the cause of the failurevoid onTlsHandshake()
void onTlsHandshakeSuccess()
void onTlsHandshakeFailure(Throwable cause)
cause
- the cause of the failurevoid 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()
Copyright © 2015. All Rights Reserved.