Package uk.co.real_logic.sbe.ir
Class HeaderStructure
java.lang.Object
uk.co.real_logic.sbe.ir.HeaderStructure
Metadata description for a message header structure expected before messages to understand the type requiring
decoding.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe field containing the length of the root block in bytes.static final StringThe field containing the schema id to which the following message belongs.static final StringThe field containing the version of the following message.static final StringThe field containing the template id of the following message. -
Constructor Summary
ConstructorsConstructorDescriptionHeaderStructure(List<Token> tokens) Construct the header structure from a list of tokens containing the minimum expected set of fields. -
Method Summary
Modifier and TypeMethodDescriptionThe declared data type for the block length field.The declared data type for the SBE schema id field.The declared data type for the SBE schema version field.The declared data type for the template id field.tokens()The IR tokens for the header.
-
Field Details
-
BLOCK_LENGTH
The field containing the length of the root block in bytes.- See Also:
-
TEMPLATE_ID
The field containing the template id of the following message.- See Also:
-
SCHEMA_ID
The field containing the schema id to which the following message belongs.- See Also:
-
SCHEMA_VERSION
The field containing the version of the following message.- See Also:
-
-
Constructor Details
-
HeaderStructure
Construct the header structure from a list of tokens containing the minimum expected set of fields.- Parameters:
tokens- for the header structure.
-
-
Method Details
-
tokens
The IR tokens for the header.- Returns:
- the IR tokens for the header.
-
blockLengthType
The declared data type for the block length field.- Returns:
- the declared data type for the block length field.
-
templateIdType
The declared data type for the template id field.- Returns:
- the declared data type for the template id field.
-
schemaIdType
The declared data type for the SBE schema id field.- Returns:
- the declared data type for the SBE schema id field.
-
schemaVersionType
The declared data type for the SBE schema version field.- Returns:
- the declared data type for the SBE schema version field.
-