Interface MatsSerializer.SerializedMatsTrace

Enclosing interface:
MatsSerializer<Z>

public static interface MatsSerializer.SerializedMatsTrace
  • Method Details

    • getMatsTraceBytes

      byte[] getMatsTraceBytes()
      Returns:
      the serialized-to-bytes MatsTrace - which probably also are compressed. Along with these bytes, you need to supply back the meta information when invoking MatsSerializer.deserializeMatsTrace(byte[], String).
    • getMeta

      String getMeta()
      Returns:
      the "meta" information about this serialization (think "envelope" in network protocol terms) - currently describes which compression algorithm is in use, or if it is uncompressed. Needs to be provided back to the deserialization method.
      See Also:
    • getSizeUncompressed

      int getSizeUncompressed()
      Returns:
      the number of bytes the trace became before compression. (The number after compression is just to do '.length' on the bytes.
    • getNanosSerialization

      long getNanosSerialization()
      Returns:
      how long time the serialization process took, in milliseconds.
    • getSizeCompressed

      default int getSizeCompressed()
      Returns:
      getMatsTraceBytes().length
    • getNanosCompression

      long getNanosCompression()
      Returns:
      how long time the (optional) compression process took, in milliseconds - will be 0 if no compression took place.