Interface IAnalyticsHandler.ProcessListener

Enclosing interface:
IAnalyticsHandler

public static interface IAnalyticsHandler.ProcessListener
A listener that can receive callback notification from the DefaultAnalyticsHandler after processing an event.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static @interface 
    List of possibles results.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Value of an outcome, where the event was dropped because the event could not processed successfully and the event was deemed unimportant to attempt try again later.
    static final int
    Value of an outcome, where the event could not be processed because handler encountered an error while attempting to process the event.
    static final int
    Value of an outcome, where the event could not be processed immediately and the event was deemed important to be backlogged and tried again later.
    static final int
    Value of an outcome, where the event was processed successfully.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onProcessed(com.brightcove.player.analytics.AnalyticsEvent event, int result, Exception cause)
    This method will be called by the DefaultAnalyticsHandler attempting to process an AnalyticsEvent.
  • Field Details

    • OUTCOME_DROPPED

      static final int OUTCOME_DROPPED
      Value of an outcome, where the event was dropped because the event could not processed successfully and the event was deemed unimportant to attempt try again later.
      See Also:
    • OUTCOME_SUBMITTED

      static final int OUTCOME_SUBMITTED
      Value of an outcome, where the event was processed successfully.
      See Also:
    • OUTCOME_SAVED

      static final int OUTCOME_SAVED
      Value of an outcome, where the event could not be processed immediately and the event was deemed important to be backlogged and tried again later.
      See Also:
    • OUTCOME_FAILED

      static final int OUTCOME_FAILED
      Value of an outcome, where the event could not be processed because handler encountered an error while attempting to process the event.
      See Also:
  • Method Details

    • onProcessed

      void onProcessed(@NonNull com.brightcove.player.analytics.AnalyticsEvent event, int result, @Nullable Exception cause)
      This method will be called by the DefaultAnalyticsHandler attempting to process an AnalyticsEvent.
      Parameters:
      event - reference to the event that was processed.
      result - the result of the attempt
      cause - reference to the underlying exception, if any