public static interface IAnalyticsHandler.ProcessListener
DefaultAnalyticsHandler
after processing an event.Modifier and Type | Interface and Description |
---|---|
static interface |
IAnalyticsHandler.ProcessListener.Outcome
List of possibles results.
|
Modifier and Type | Field and Description |
---|---|
static 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.
|
static 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.
|
static 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.
|
static int |
OUTCOME_SUBMITTED
Value of an outcome, where the event was processed successfully.
|
Modifier and Type | Method and Description |
---|---|
void |
onProcessed(com.brightcove.player.analytics.AnalyticsEvent event,
int result,
java.lang.Exception cause)
This method will be called by the
DefaultAnalyticsHandler attempting to process
an AnalyticsEvent . |
static final int OUTCOME_DROPPED
static final int OUTCOME_SUBMITTED
static final int OUTCOME_SAVED
static final int OUTCOME_FAILED
void onProcessed(@NonNull com.brightcove.player.analytics.AnalyticsEvent event, int result, @Nullable java.lang.Exception cause)
DefaultAnalyticsHandler
attempting to process
an AnalyticsEvent
.event
- reference to the event that was processed.result
- the result of the attemptcause
- reference to the underlying exception, if any