Interface MessageFlyweight

All Superinterfaces:
Flyweight
All Known Subinterfaces:
MessageDecoderFlyweight, MessageEncoderFlyweight

public interface MessageFlyweight extends Flyweight
Common behaviour to SBE Message encoder and decoder flyweights.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The current limit in the buffer at which the message is being encoded or decoded.
    void
    limit(int limit)
    The current limit in the buffer at which the message is being encoded or decoded.
    int
    The length of the root block in bytes.
    The semantic type of the message which is typically the semantic equivalent in the FIX repository.
    int
    The SBE template identifier for the message.

    Methods inherited from interface org.agrona.sbe.Flyweight

    buffer, encodedLength, offset, sbeSchemaId, sbeSchemaVersion
  • Method Details

    • sbeBlockLength

      int sbeBlockLength()
      The length of the root block in bytes.
      Returns:
      the length of the root block in bytes.
    • sbeTemplateId

      int sbeTemplateId()
      The SBE template identifier for the message.
      Returns:
      the SBE template identifier for the message.
    • sbeSemanticType

      String sbeSemanticType()
      The semantic type of the message which is typically the semantic equivalent in the FIX repository.
      Returns:
      the semantic type of the message which is typically the semantic equivalent in the FIX repository.
    • limit

      int limit()
      The current limit in the buffer at which the message is being encoded or decoded.
      Returns:
      the current limit in the buffer at which the message is being encoded or decoded.
    • limit

      void limit(int limit)
      The current limit in the buffer at which the message is being encoded or decoded.
      Parameters:
      limit - in the buffer at which the message is being encoded or decoded.