Class AbstractAnalyticsEvent

java.lang.Object
com.brightcove.player.store.BaseEntity
com.brightcove.player.analytics.AbstractAnalyticsEvent
All Implemented Interfaces:
IdentifiableEntity<com.brightcove.player.analytics.AnalyticsEvent,Long>, io.requery.Persistable

@Entity public abstract class AbstractAnalyticsEvent extends BaseEntity implements IdentifiableEntity<com.brightcove.player.analytics.AnalyticsEvent,Long>
  • Field Details

    • LOW

      public static final int LOW
      The value of low priority event. Low priority events that can be dropped if necessary without transmitting to the server. When transmitting, low priority events may be transmitted to the collector service later than other higher priority events.
      See Also:
    • NORMAL

      public static final int NORMAL
      The value of normal priority event. Default priority for events that are not tagged explicitly. Normal events will be dropped from the local store only after trying (and re-trying) to transmit the events to collector service.
      See Also:
    • HIGH

      public static final int HIGH
      The value of high priority event. High priority events will be dropped from the local store only after a successful transmission to collector service.
      See Also:
    • CRITICAL

      public static final int CRITICAL
      The value of critical priority event. Critical events will be transmitted immediately, regardless of the network preference, by passing the normal transmission order. Critical events will be dropped from the local store only after a successful transmission to collector service.
      See Also:
  • Constructor Details

    • AbstractAnalyticsEvent

      public AbstractAnalyticsEvent()
  • Method Details

    • getIdentityCondition

      public io.requery.query.LogicalCondition<? extends io.requery.query.Expression<Long>,?> getIdentityCondition(Long key)
      Description copied from interface: IdentifiableEntity
      Gets a LogicalCondition that can be used to match an entity by it's unique identifier.
      Specified by:
      getIdentityCondition in interface IdentifiableEntity<com.brightcove.player.analytics.AnalyticsEvent,Long>
      Parameters:
      key - the unique identifier of the entity.
      Returns:
      the logical condition.
    • getIdentityCondition

      public io.requery.query.LogicalCondition<? extends io.requery.query.Expression<Long>,?> getIdentityCondition()
      Description copied from interface: IdentifiableEntity
      Gets a LogicalCondition that can be used to match this entity by it's unique identifier.
      Specified by:
      getIdentityCondition in interface IdentifiableEntity<com.brightcove.player.analytics.AnalyticsEvent,Long>
      Returns:
      the logical condition.
    • create

      public static com.brightcove.player.analytics.AnalyticsEvent create(int priority, @NonNull String type, @Nullable Map<String,String> parameters)
      Creates a new analytics event.
      Parameters:
      priority - the priority of the event.
      type - the type of the analytics event.
      parameters - a map of HTTP query parameter names and values to be sent to the server.
      Returns:
    • create

      public static com.brightcove.player.analytics.AnalyticsEvent create(@NonNull String type, @Nullable Map<String,String> parameters)
      Creates a new analytics event.
      Parameters:
      type - the type of the analytics event.
      parameters - a map of HTTP query parameter names and values to be sent to the server.
      Returns: