Class TracingInterceptor.ReturnValueResultListener
- java.lang.Object
-
- jadex.commons.future.DelegationResultListener<java.lang.Void>
-
- jadex.bridge.service.component.interceptors.TracingInterceptor.ReturnValueResultListener
-
- All Implemented Interfaces:
jadex.commons.future.IFutureCommandResultListener<java.lang.Void>
,jadex.commons.future.IResultListener<java.lang.Void>
,jadex.commons.future.IUndoneResultListener<java.lang.Void>
- Enclosing class:
- TracingInterceptor
protected class TracingInterceptor.ReturnValueResultListener extends jadex.commons.future.DelegationResultListener<java.lang.Void>
Listener that handles the end of the call.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceInvocationContext
sic
The service invocation context.protected io.opentelemetry.sdk.trace.ReadableSpan
span
The span.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReturnValueResultListener(jadex.commons.future.Future<java.lang.Void> future, ServiceInvocationContext sic, io.opentelemetry.sdk.trace.ReadableSpan span)
Create a result listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeSpan()
void
customResultAvailable(java.lang.Void result)
Called when the service call is finished.void
exceptionOccurred(java.lang.Exception exception)
-
-
-
Field Detail
-
sic
protected ServiceInvocationContext sic
The service invocation context.
-
span
protected io.opentelemetry.sdk.trace.ReadableSpan span
The span.
-
-
Constructor Detail
-
ReturnValueResultListener
protected ReturnValueResultListener(jadex.commons.future.Future<java.lang.Void> future, ServiceInvocationContext sic, io.opentelemetry.sdk.trace.ReadableSpan span)
Create a result listener.
-
-
Method Detail
-
customResultAvailable
public void customResultAvailable(java.lang.Void result)
Called when the service call is finished.- Overrides:
customResultAvailable
in classjadex.commons.future.DelegationResultListener<java.lang.Void>
-
exceptionOccurred
public void exceptionOccurred(java.lang.Exception exception)
- Specified by:
exceptionOccurred
in interfacejadex.commons.future.IResultListener<java.lang.Void>
- Overrides:
exceptionOccurred
in classjadex.commons.future.DelegationResultListener<java.lang.Void>
-
closeSpan
protected void closeSpan()
-
-