Class Message

java.lang.Object
uk.co.real_logic.sbe.xml.Message

public class Message extends Object
An SBE message containing a list of Field objects and SBE message attributes.

What is difference between Message and the Intermediate Representation (IR)?

  • IR is intentionally platform, schema, and language independent.
  • IR is abstract layout and encoding only.
  • IR is a flat representation without cycles or hierarchy.
  • Message is FIX/SBE XML Schema specific.
  • Constructor Details

  • Method Details

    • id

      public int id()
      Return the template schemaId of the message
      Returns:
      schemaId of the message
    • name

      public String name()
      Return the name of the message
      Returns:
      name of the message
    • description

      public String description()
      The description of the message (if set) or null
      Returns:
      description set by the message or null
    • semanticType

      public String semanticType()
      The semanticType of the message (if set) or null
      Returns:
      the semanticType of the message (if set) or null
    • sinceVersion

      public int sinceVersion()
      The version since this was added to the template.
      Returns:
      version since this was added to the template.
    • deprecated

      public int deprecated()
      Version in which message was deprecated. Only valid if greater than zero.
      Returns:
      version in which the message was deprecated.
    • fields

      public List<Field> fields()
      Return the list of fields in the message
      Returns:
      List of the Field objects in this Message
    • blockLength

      public int blockLength()
      Return the encodedLength of the Message in bytes including any padding.
      Returns:
      the encodedLength of the Message in bytes including any padding.
    • toString

      public String toString()
      Overrides:
      toString in class Object