Class EventBufferSettings

java.lang.Object
com.dsi.ant.channel.EventBufferSettings
All Implemented Interfaces:
android.os.Parcelable

public final class EventBufferSettings extends Object implements android.os.Parcelable
The settings of the event buffer on this ANT adapter reporting the current time value of the event buffer.
Since:
4.1
  • Field Details

    • DEFAULT_BUFFER_TIME_MILLISECONDS

      public static final int DEFAULT_BUFFER_TIME_MILLISECONDS
      Default event buffering time in milliseconds. Setting the maximum buffering time to a value less than the default value will sacrifice the power savings provided by event buffering.
      Since:
      4.1
      See Also:
    • MIN_BUFFER_TIME_MILLISECONDS

      public static final int MIN_BUFFER_TIME_MILLISECONDS
      The minimum time in milliseconds an event buffer can be configured to.
      Since:
      4.1
      See Also:
    • MAX_BUFFER_TIME_MILLISECONDS

      public static final int MAX_BUFFER_TIME_MILLISECONDS
      The maximum time in milliseconds an event buffer can be configured to.
      Since:
      4.1
      See Also:
    • DEFAULT_EVENT_BUFFER_SETTINGS

      public static final EventBufferSettings DEFAULT_EVENT_BUFFER_SETTINGS
      Predefined settings which will vote for event buffering to be set to the default.
      Since:
      4.1
    • DISABLE_EVENT_BUFFER_SETTINGS

      public static final EventBufferSettings DISABLE_EVENT_BUFFER_SETTINGS
      Predefined settings which will vote for event buffering to be disabled.
      Since:
      4.1
    • CREATOR

      public static final android.os.Parcelable.Creator<EventBufferSettings> CREATOR
      For Parcelable
  • Constructor Details

    • EventBufferSettings

      public EventBufferSettings()
      Constructs an EventBufferSettings object with the default values.
      Since:
      4.1
  • Method Details

    • getEventBufferTime

      public int getEventBufferTime()
      The current maximum time an event will remain in the buffer before being flushed.
      Returns:
      The maximum time in milliseconds
      Since:
      4.1
    • setEventBufferTime

      public void setEventBufferTime(int timeMilliseconds)
      Set the maximum buffer time an event will remain in the buffer before being flushed.
      Parameters:
      timeMilliseconds - The maximum time in milliseconds
      Since:
      4.1
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Since:
      4.1
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Since:
      4.1
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      4.1
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable