Class AsyncHandlerWrapper<T>

java.lang.Object
io.opentelemetry.javaagent.instrumentation.playws.v2_1.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>
  • 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
      Specified by:
      onBodyPartReceived in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
      Throws:
      Exception
    • onStatusReceived

      public play.shaded.ahc.org.asynchttpclient.AsyncHandler.State onStatusReceived(play.shaded.ahc.org.asynchttpclient.HttpResponseStatus status) throws Exception
      Specified by:
      onStatusReceived in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
      Throws:
      Exception
    • onHeadersReceived

      public play.shaded.ahc.org.asynchttpclient.AsyncHandler.State onHeadersReceived(play.shaded.ahc.io.netty.handler.codec.http.HttpHeaders httpHeaders) throws Exception
      Specified by:
      onHeadersReceived in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
      Throws:
      Exception
    • onCompleted

      public T onCompleted() throws Exception
      Specified by:
      onCompleted in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
      Throws:
      Exception
    • onThrowable

      public void onThrowable(Throwable throwable)
      Specified by:
      onThrowable in interface play.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
      Specified by:
      onTrailingHeadersReceived in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
      Throws:
      Exception
    • onHostnameResolutionAttempt

      public void onHostnameResolutionAttempt(String name)
      Specified by:
      onHostnameResolutionAttempt in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onHostnameResolutionSuccess

      public void onHostnameResolutionSuccess(String name, List<InetSocketAddress> list)
      Specified by:
      onHostnameResolutionSuccess in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onHostnameResolutionFailure

      public void onHostnameResolutionFailure(String name, Throwable cause)
      Specified by:
      onHostnameResolutionFailure in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onTcpConnectAttempt

      public void onTcpConnectAttempt(InetSocketAddress remoteAddress)
      Specified by:
      onTcpConnectAttempt in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onTcpConnectSuccess

      public void onTcpConnectSuccess(InetSocketAddress remoteAddress, play.shaded.ahc.io.netty.channel.Channel connection)
      Specified by:
      onTcpConnectSuccess in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onTcpConnectFailure

      public void onTcpConnectFailure(InetSocketAddress remoteAddress, Throwable cause)
      Specified by:
      onTcpConnectFailure in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onTlsHandshakeAttempt

      public void onTlsHandshakeAttempt()
      Specified by:
      onTlsHandshakeAttempt in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onTlsHandshakeSuccess

      public void onTlsHandshakeSuccess(SSLSession sslSession)
      Specified by:
      onTlsHandshakeSuccess in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onTlsHandshakeFailure

      public void onTlsHandshakeFailure(Throwable cause)
      Specified by:
      onTlsHandshakeFailure in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onConnectionPoolAttempt

      public void onConnectionPoolAttempt()
      Specified by:
      onConnectionPoolAttempt in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onConnectionPooled

      public void onConnectionPooled(play.shaded.ahc.io.netty.channel.Channel connection)
      Specified by:
      onConnectionPooled in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onConnectionOffer

      public void onConnectionOffer(play.shaded.ahc.io.netty.channel.Channel connection)
      Specified by:
      onConnectionOffer in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onRequestSend

      public void onRequestSend(play.shaded.ahc.org.asynchttpclient.netty.request.NettyRequest request)
      Specified by:
      onRequestSend in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>
    • onRetry

      public void onRetry()
      Specified by:
      onRetry in interface play.shaded.ahc.org.asynchttpclient.AsyncHandler<T>