Package com.brightcove.player.analytics
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>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceList of supported event priorities. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe value of critical priority event.static final intThe value of high priority event.static final intThe value of low priority event.static final intThe value of normal priority event.Fields inherited from class com.brightcove.player.store.BaseEntity
createTime, updateTime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.brightcove.player.analytics.AnalyticsEventCreates a new analytics event.static com.brightcove.player.analytics.AnalyticsEventCreates a new analytics event.io.requery.query.LogicalCondition<? extends io.requery.query.Expression<Long>,?> Gets aLogicalConditionthat can be used to match this entity by it's unique identifier.io.requery.query.LogicalCondition<? extends io.requery.query.Expression<Long>,?> getIdentityCondition(Long key) Gets aLogicalConditionthat can be used to match an entity by it's unique identifier.Methods inherited from class com.brightcove.player.store.BaseEntity
getModifiedTime, onBeforeInsert, onBeforeUpdateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.brightcove.player.store.IdentifiableEntity
getKey
-
Field Details
-
LOW
public static final int LOWThe 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 NORMALThe 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 HIGHThe 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 CRITICALThe 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:IdentifiableEntityGets aLogicalConditionthat can be used to match an entity by it's unique identifier.- Specified by:
getIdentityConditionin interfaceIdentifiableEntity<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:IdentifiableEntityGets aLogicalConditionthat can be used to match this entity by it's unique identifier.- Specified by:
getIdentityConditionin interfaceIdentifiableEntity<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:
-