Class AsyncHandlerWrapper<T>
java.lang.Object
io.opentelemetry.javaagent.instrumentation.playws.v2_0.AsyncHandlerWrapper<T>
- All Implemented Interfaces:
play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
- Direct Known Subclasses:
StreamedAsyncHandlerWrapper
public class AsyncHandlerWrapper<T>
extends Object
implements play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface play.shaded.ahc.org.asynchttpclient.AsyncHandler
play.shaded.ahc.org.asynchttpclient.AsyncHandler.State -
Constructor Summary
ConstructorsConstructorDescriptionAsyncHandlerWrapper(play.shaded.ahc.org.asynchttpclient.AsyncHandler<T> delegate, play.shaded.ahc.org.asynchttpclient.Request request, io.opentelemetry.context.Context context, io.opentelemetry.context.Context parentContext) -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.context.Contextplay.shaded.ahc.org.asynchttpclient.AsyncHandler.StateonBodyPartReceived(play.shaded.ahc.org.asynchttpclient.HttpResponseBodyPart content) voidonConnectionOffer(play.shaded.ahc.io.netty.channel.Channel connection) voidvoidonConnectionPooled(play.shaded.ahc.io.netty.channel.Channel connection) play.shaded.ahc.org.asynchttpclient.AsyncHandler.StateonHeadersReceived(play.shaded.ahc.io.netty.handler.codec.http.HttpHeaders httpHeaders) voidvoidonHostnameResolutionFailure(String name, Throwable cause) voidonHostnameResolutionSuccess(String name, List<InetSocketAddress> list) voidonRequestSend(play.shaded.ahc.org.asynchttpclient.netty.request.NettyRequest request) voidonRetry()play.shaded.ahc.org.asynchttpclient.AsyncHandler.StateonStatusReceived(play.shaded.ahc.org.asynchttpclient.HttpResponseStatus status) voidonTcpConnectAttempt(InetSocketAddress remoteAddress) voidonTcpConnectFailure(InetSocketAddress remoteAddress, Throwable cause) voidonTcpConnectSuccess(InetSocketAddress remoteAddress, play.shaded.ahc.io.netty.channel.Channel connection) voidonThrowable(Throwable throwable) voidvoidonTlsHandshakeFailure(Throwable cause) voidplay.shaded.ahc.org.asynchttpclient.AsyncHandler.StateonTrailingHeadersReceived(play.shaded.ahc.io.netty.handler.codec.http.HttpHeaders headers)
-
Constructor Details
-
AsyncHandlerWrapper
public AsyncHandlerWrapper(play.shaded.ahc.org.asynchttpclient.AsyncHandler<T> delegate, play.shaded.ahc.org.asynchttpclient.Request request, io.opentelemetry.context.Context context, io.opentelemetry.context.Context parentContext)
-
-
Method Details
-
getParentContext
public io.opentelemetry.context.Context getParentContext() -
onBodyPartReceived
public play.shaded.ahc.org.asynchttpclient.AsyncHandler.State onBodyPartReceived(play.shaded.ahc.org.asynchttpclient.HttpResponseBodyPart content) throws Exception -
onStatusReceived
public play.shaded.ahc.org.asynchttpclient.AsyncHandler.State onStatusReceived(play.shaded.ahc.org.asynchttpclient.HttpResponseStatus status) throws Exception -
onHeadersReceived
public play.shaded.ahc.org.asynchttpclient.AsyncHandler.State onHeadersReceived(play.shaded.ahc.io.netty.handler.codec.http.HttpHeaders httpHeaders) throws Exception -
onCompleted
-
onThrowable
- Specified by:
onThrowablein interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onTrailingHeadersReceived
public play.shaded.ahc.org.asynchttpclient.AsyncHandler.State onTrailingHeadersReceived(play.shaded.ahc.io.netty.handler.codec.http.HttpHeaders headers) throws Exception -
onHostnameResolutionAttempt
- Specified by:
onHostnameResolutionAttemptin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onHostnameResolutionSuccess
- Specified by:
onHostnameResolutionSuccessin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onHostnameResolutionFailure
- Specified by:
onHostnameResolutionFailurein interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onTcpConnectAttempt
- Specified by:
onTcpConnectAttemptin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onTcpConnectSuccess
public void onTcpConnectSuccess(InetSocketAddress remoteAddress, play.shaded.ahc.io.netty.channel.Channel connection) - Specified by:
onTcpConnectSuccessin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onTcpConnectFailure
- Specified by:
onTcpConnectFailurein interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onTlsHandshakeAttempt
public void onTlsHandshakeAttempt()- Specified by:
onTlsHandshakeAttemptin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onTlsHandshakeSuccess
public void onTlsHandshakeSuccess()- Specified by:
onTlsHandshakeSuccessin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onTlsHandshakeFailure
- Specified by:
onTlsHandshakeFailurein interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onConnectionPoolAttempt
public void onConnectionPoolAttempt()- Specified by:
onConnectionPoolAttemptin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onConnectionPooled
public void onConnectionPooled(play.shaded.ahc.io.netty.channel.Channel connection) - Specified by:
onConnectionPooledin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onConnectionOffer
public void onConnectionOffer(play.shaded.ahc.io.netty.channel.Channel connection) - Specified by:
onConnectionOfferin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onRequestSend
public void onRequestSend(play.shaded.ahc.org.asynchttpclient.netty.request.NettyRequest request) - Specified by:
onRequestSendin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-
onRetry
public void onRetry()- Specified by:
onRetryin interfaceplay.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
-