Class DispatcherExtensions

    • Constructor Detail

      • DispatcherExtensions

        DispatcherExtensions()
    • Method Detail

      • getPreEventWrite

         final Function1<E, E> getPreEventWrite()

        This can be used to augment events before they are written to the eventQueue. Use this for augmentation which is not computationally heavy.

      • setPreEventWrite

         final Unit setPreEventWrite(Function1<E, E> value)

        This can be used to augment events before they are written to the eventQueue. Use this for augmentation which is not computationally heavy.

      • getPreEventsSend

         final Function1<List<E>, List<E>> getPreEventsSend()

        This can be used to augment events before they are sent to the server. Use this for more expensive augmentation. You can fetch values once and apply them to a whole batch here.

      • setPreEventsSend

         final Unit setPreEventsSend(Function1<List<E>, List<E>> value)

        This can be used to augment events before they are sent to the server. Use this for more expensive augmentation. You can fetch values once and apply them to a whole batch here.

      • getPostClose

         final SuspendFunction1<AbstractSimpleReportDispatcher<?, ?>, Unit> getPostClose()

        This can be used to perform additional actions after the dispatcher is closed. The default will attempt to send remaining events in the queue without any retries. This may be used to trigger the external uploader used in IDEs.

      • setPostClose

         final Unit setPostClose(SuspendFunction1<AbstractSimpleReportDispatcher<?, ?>, Unit> value)

        This can be used to perform additional actions after the dispatcher is closed. The default will attempt to send remaining events in the queue without any retries. This may be used to trigger the external uploader used in IDEs.