Class 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.
      • Fields inherited from class jadex.commons.future.DelegationResultListener

        customResultListener, future, undone
    • 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)  
      • Methods inherited from class jadex.commons.future.DelegationResultListener

        commandAvailable, exceptionOccurredIfUndone, isUndone, resultAvailable, resultAvailableIfUndone
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 class jadex.commons.future.DelegationResultListener<java.lang.Void>
      • exceptionOccurred

        public void exceptionOccurred​(java.lang.Exception exception)
        Specified by:
        exceptionOccurred in interface jadex.commons.future.IResultListener<java.lang.Void>
        Overrides:
        exceptionOccurred in class jadex.commons.future.DelegationResultListener<java.lang.Void>
      • closeSpan

        protected void closeSpan()