Class RestResponseListener
- java.lang.Object
-
- io.opentelemetry.javaagent.instrumentation.elasticsearch.rest.RestResponseListener
-
- All Implemented Interfaces:
org.elasticsearch.client.ResponseListener
public class RestResponseListener extends Object implements org.elasticsearch.client.ResponseListener
-
-
Constructor Summary
Constructors Constructor Description RestResponseListener(org.elasticsearch.client.ResponseListener listener, io.opentelemetry.context.Context context, io.opentelemetry.context.Context parentContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonFailure(Exception e)voidonSuccess(org.elasticsearch.client.Response response)
-
-
-
Method Detail
-
onSuccess
public void onSuccess(org.elasticsearch.client.Response response)
- Specified by:
onSuccessin interfaceorg.elasticsearch.client.ResponseListener
-
onFailure
public void onFailure(Exception e)
- Specified by:
onFailurein interfaceorg.elasticsearch.client.ResponseListener
-
-