Class AnalyticsRetryLimitException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AnalyticsRetryLimitException
    extends java.io.IOException
    An IOException that describes the reason why an AnalyticsEvent cannot be sent.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long attemptsMade
      The total number of attempts made to send the event.
      java.util.Map<java.lang.String,​java.lang.String> parameters
      An immutable map of HTTP query parameter names and values to be sent to the server.
      int priority
      The priority of the event.
      long retryLimit
      The maximum number of attempts that can be made to send events of priority.
      java.lang.String type
      The type of the analytics event.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • priority

        public final int priority
        The priority of the event.
      • type

        @NonNull
        public final java.lang.String type
        The type of the analytics event.
      • parameters

        @NonNull
        public final java.util.Map<java.lang.String,​java.lang.String> parameters
        An immutable map of HTTP query parameter names and values to be sent to the server.
      • attemptsMade

        public final long attemptsMade
        The total number of attempts made to send the event.
      • retryLimit

        public final long retryLimit
        The maximum number of attempts that can be made to send events of priority.
    • Constructor Detail

      • AnalyticsRetryLimitException

        public AnalyticsRetryLimitException​(@NonNull
                                            com.brightcove.player.analytics.AnalyticsEvent event,
                                            long retryLimit,
                                            @Nullable
                                            java.lang.Exception cause)
        Constructs an instance of AnalyticsRetryLimitException
        Parameters:
        event - reference to the event that cannot be saved.
        retryLimit - the maximum number of attempts that can be made to send event of priority.
        cause - the reason for failure, if any