Package com.dsi.ant.channel
Class EventBufferSettings
java.lang.Object
com.dsi.ant.channel.EventBufferSettings
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<EventBufferSettings>
For Parcelablestatic final int
Default event buffering time in milliseconds.static final EventBufferSettings
Predefined settings which will vote for event buffering to be set to the default.static final EventBufferSettings
Predefined settings which will vote for event buffering to be disabled.static final int
The maximum time in milliseconds an event buffer can be configured to.static final int
The minimum time in milliseconds an event buffer can be configured to.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an EventBufferSettings object with the default values. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
The current maximum time an event will remain in the buffer before being flushed.int
hashCode()
void
setEventBufferTime
(int timeMilliseconds) Set the maximum buffer time an event will remain in the buffer before being flushed.toString()
void
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
DEFAULT_BUFFER_TIME_MILLISECONDS
public static final int DEFAULT_BUFFER_TIME_MILLISECONDSDefault 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_MILLISECONDSThe 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_MILLISECONDSThe maximum time in milliseconds an event buffer can be configured to.- Since:
- 4.1
- See Also:
-
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
Predefined settings which will vote for event buffering to be disabled.- Since:
- 4.1
-
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() -
equals
-
toString
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-