Class DispatcherExtensions
-
- All Implemented Interfaces:
public final class DispatcherExtensions<E extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description private Function1<E, E>preEventWriteprivate Function1<List<E>, List<E>>preEventsSendprivate SuspendFunction1<AbstractSimpleReportDispatcher<?, ?>, Unit>postClose
-
Constructor Summary
Constructors Constructor Description DispatcherExtensions()
-
Method Summary
Modifier and Type Method Description final Function1<E, E>getPreEventWrite()This can be used to augment events before they are written to the eventQueue. final UnitsetPreEventWrite(Function1<E, E> value)This can be used to augment events before they are written to the eventQueue. final Function1<List<E>, List<E>>getPreEventsSend()This can be used to augment events before they are sent to the server. final UnitsetPreEventsSend(Function1<List<E>, List<E>> value)This can be used to augment events before they are sent to the server. final SuspendFunction1<AbstractSimpleReportDispatcher<?, ?>, Unit>getPostClose()This can be used to perform additional actions after the dispatcher is closed. final UnitsetPostClose(SuspendFunction1<AbstractSimpleReportDispatcher<?, ?>, Unit> value)This can be used to perform additional actions after the dispatcher is closed. -
-
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.
-
-
-
-