public final class ConfigureEventBufferMessage extends AntMessageFromHost
Modifier and Type | Class and Description |
---|---|
static class |
ConfigureEventBufferMessage.BufferEvents
The groups of messages to buffer.
|
Modifier and Type | Field and Description |
---|---|
static ConfigureEventBufferMessage |
DISABLE_EVENT_BUFFERING
Singleton disable event buffering message.
|
static int |
MAX_BUFFER_SIZE
The maximum value allowed for the buffer size
|
static int |
MAX_BUFFER_TIME
The maximum value allowed for the buffer time
|
static int |
MIN_BUFFER_SIZE
The minimum value allowed for the buffer size
|
static int |
MIN_BUFFER_TIME
The minimum value allowed for the buffer time
|
static int |
OFFSET_BUFFER_EVENTS
The message content offset to the buffer events value
|
static int |
OFFSET_BUFFER_SIZE
The message content offset to the buffer size value
|
static int |
OFFSET_BUFFER_TIME
The message content offset to the buffer time value
|
static int |
SIZE_BUFFER_EVENTS
The number of bytes used for the buffer events value
|
static int |
SIZE_BUFFER_SIZE
The number of bytes used for the buffer size value
|
static int |
SIZE_BUFFER_TIME
The number of bytes used for the buffer time value
|
static int |
TIME_INCREMENTS
Buffer Time is specified in 10ms units
|
BITMASK_CHANNEL_NUMBER, FILLER_BYTE, OFFSET_CHANNEL_NUMBER, RAW_OFFSET_MESSAGE_CONTENT_START, RAW_OFFSET_MESSAGE_ID, RAW_OFFSET_MESSAGE_SIZE, SIZE_CHANNEL_NUMBER, SIZE_FILLER_BYTE
Constructor and Description |
---|
ConfigureEventBufferMessage(ConfigureEventBufferMessage.BufferEvents events,
int bufferSize,
int bufferTime) |
Modifier and Type | Method and Description |
---|---|
ConfigureEventBufferMessage.BufferEvents |
getBufferEvents()
Gets the types of events that will be buffered.
|
int |
getMaxBufferSizeBeforeFlush()
Gets the number of bytes the buffer will hold until flushing all events
buffered.
|
int |
getMaxBufferTimeBeforeFlush()
Gets the duration the buffer will buffer events before flushing all the
buffered events.
|
byte[] |
getMessageContent(int channelNumber,
int networkNumber)
The content of the message with specified channel number and network number set if required.
|
MessageFromHostType |
getMessageType()
The unique type of this message based on its message id, contents, and intended channel
type.
|
int |
getRealMaxBufferTimeBeforeFlush()
Gets the duration events will be buffered for before flushing all events.
|
java.lang.String |
toString() |
createAntMessage, getMessageContent, getMessageContent, getMessageId, getRawMessage
equals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumber
public static final int SIZE_BUFFER_EVENTS
public static final int SIZE_BUFFER_SIZE
public static final int SIZE_BUFFER_TIME
public static final int OFFSET_BUFFER_EVENTS
public static final int OFFSET_BUFFER_SIZE
public static final int OFFSET_BUFFER_TIME
public static final int MIN_BUFFER_SIZE
public static final int MAX_BUFFER_SIZE
public static final int MIN_BUFFER_TIME
public static final int MAX_BUFFER_TIME
public static final int TIME_INCREMENTS
public static final ConfigureEventBufferMessage DISABLE_EVENT_BUFFERING
public ConfigureEventBufferMessage(ConfigureEventBufferMessage.BufferEvents events, int bufferSize, int bufferTime)
events
- Which types of events to buffer. NONE will disable event buffering.bufferSize
- Stores the maximum number of bytes that will be stored before a buffer
flush occurs.bufferTime
- Maximum time in 10ms units before a buffer flush occurs. Setting time to 0
disables timer.public ConfigureEventBufferMessage.BufferEvents getBufferEvents()
ConfigureEventBufferMessage.BufferEvents
that will be buffered.public int getMaxBufferSizeBeforeFlush()
public int getMaxBufferTimeBeforeFlush()
public int getRealMaxBufferTimeBeforeFlush()
public byte[] getMessageContent(int channelNumber, int networkNumber)
AntMessageFromHost
getMessageContent
in class AntMessageFromHost
channelNumber
- Written to the channel number byte if requirednetworkNumber
- Written to the network number byte if requiredpublic MessageFromHostType getMessageType()
AntMessageFromHost
It is recommended to use this rather than the raw message ID.
getMessageType
in class AntMessageFromHost
public java.lang.String toString()
toString
in class AntMessageFromHost
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.