Class CallbackStatisticCollector

    • Constructor Detail

      • CallbackStatisticCollector

        public CallbackStatisticCollector()
    • Method Detail

      • addCallback

        public static void addCallback​(MessageContext messageContext,
                                       String callbackId)
        Enqueue CallbackSentEvent event to the event queue. This corresponds to the registering of callback for the message flow by the SynapseCallbackReceiver.
        Parameters:
        messageContext - Current MessageContext of the flow.
        callbackId - Callback Id.
      • callbackCompletionEvent

        public static void callbackCompletionEvent​(MessageContext oldMessageContext,
                                                   String callbackId)
        Enqueue CallbackCompletionEvent event to the event queue. This event inform that callback handling finished or callback is removed by the TimeoutHandler.
        Parameters:
        oldMessageContext - Current MessageContext of the flow.
        callbackId - Callback Id.
      • updateParentsForCallback

        public static void updateParentsForCallback​(MessageContext oldMessageContext,
                                                    String callbackId)
        Enqueue CallbackReceivedEvent event to the event queue. This informs that callback has received its response.
        Parameters:
        oldMessageContext - Current MessageContext of the flow.
        callbackId - Callback Id.
      • reportCallbackHandlingCompletion

        public static void reportCallbackHandlingCompletion​(MessageContext synapseOutMsgCtx,
                                                            String callbackId)
        Enqueue CallbackHandledEvent event to the event queue. This informs that callback handling is finished after receiving the callback.
        Parameters:
        synapseOutMsgCtx - Old MessageContext of the flow.
        callbackId - Callback Id.