public abstract class ExtendedAsyncHandler<T> extends Object implements AsyncHandler<T>, AsyncHandlerExtensions
AsyncHandler.State| Constructor and Description |
|---|
ExtendedAsyncHandler() |
| 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(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 |
onTcpConnectAttempt(InetSocketAddress address)
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,
Channel connection)
Notify the callback after a successful connect
|
void |
onTlsHandshakeAttempt()
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonBodyPartReceived, onCompleted, onHeadersReceived, onStatusReceived, onThrowablepublic void onHostnameResolutionAttempt(String name)
AsyncHandlerExtensionsonHostnameResolutionAttempt in interface AsyncHandlerExtensionsname - the name to be resolvedpublic void onHostnameResolutionSuccess(String name, List<InetSocketAddress> addresses)
AsyncHandlerExtensionsonHostnameResolutionSuccess in interface AsyncHandlerExtensionsname - the name to be resolvedaddresses - the resolved addressespublic void onHostnameResolutionFailure(String name, Throwable cause)
AsyncHandlerExtensionsonHostnameResolutionFailure in interface AsyncHandlerExtensionsname - the name to be resolvedcause - the failure causepublic void onTcpConnectAttempt(InetSocketAddress address)
AsyncHandlerExtensionsonTcpConnectAttempt in interface AsyncHandlerExtensionsaddress - the address we try to connect topublic void onTcpConnectSuccess(InetSocketAddress remoteAddress, Channel connection)
AsyncHandlerExtensionsonTcpConnectSuccess in interface AsyncHandlerExtensionsremoteAddress - the address we try to connect toconnection - the connectionpublic void onTcpConnectFailure(InetSocketAddress remoteAddress, Throwable cause)
AsyncHandlerExtensionsonTcpConnectFailure in interface AsyncHandlerExtensionsremoteAddress - the address we try to connect tocause - the cause of the failurepublic void onTlsHandshakeAttempt()
AsyncHandlerExtensionsonTlsHandshakeAttempt in interface AsyncHandlerExtensionspublic void onTlsHandshakeSuccess()
AsyncHandlerExtensionsonTlsHandshakeSuccess in interface AsyncHandlerExtensionspublic void onTlsHandshakeFailure(Throwable cause)
AsyncHandlerExtensionsonTlsHandshakeFailure in interface AsyncHandlerExtensionscause - the cause of the failurepublic void onConnectionPoolAttempt()
AsyncHandlerExtensionsonConnectionPoolAttempt in interface AsyncHandlerExtensionspublic void onConnectionPooled(Channel connection)
AsyncHandlerExtensionsonConnectionPooled in interface AsyncHandlerExtensionsconnection - the connectionpublic void onConnectionOffer(Channel connection)
AsyncHandlerExtensionsonConnectionOffer in interface AsyncHandlerExtensionsconnection - the connectionpublic void onRequestSend(NettyRequest request)
AsyncHandlerExtensionsonRequestSend in interface AsyncHandlerExtensionsrequest - the real request object as passed to the providerpublic void onRetry()
AsyncHandlerExtensionsonRetry in interface AsyncHandlerExtensionsCopyright © 2017. All Rights Reserved.