Class AggregationMessage

java.lang.Object
com.arpnetworking.tsdcore.model.AggregationMessage

public final class AggregationMessage extends Object
Class for building messages from the raw, on-the-wire bytes in the TCP stream.
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot com)
  • Method Details

    • create

      public static AggregationMessage create(com.google.protobuf.GeneratedMessageV3 message)
      Static factory.
      Parameters:
      message - The message.
      Returns:
      New AggregationMessage instance.
    • deserialize

      public static Optional<AggregationMessage> deserialize(org.apache.pekko.util.ByteString data)
      Deserialize message from ByteString. TODO(vkoskela): The header and message need to be versioned [MAI-133].
      Parameters:
      data - The ByteString containing the serialized message.
      Returns:
      The deserialized AggregationMessage or absent if the ByteString could not be deserialized.
    • serialize

      public org.apache.pekko.util.ByteString serialize()
      Serialize the message into a ByteString.
      Returns:
      ByteString containing serialized message.
    • getMessage

      public com.google.protobuf.GeneratedMessageV3 getMessage()
    • getLength

      public int getLength()