Package io.mats3.serial
Interface MatsSerializer.SerializedMatsTrace
-
- Enclosing interface:
- MatsSerializer<Z>
public static interface MatsSerializer.SerializedMatsTrace
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description byte[]getMatsTraceBytes()java.lang.StringgetMeta()longgetNanosCompression()longgetNanosSerialization()default intgetSizeCompressed()intgetSizeUncompressed()
-
-
-
Method Detail
-
getMatsTraceBytes
byte[] getMatsTraceBytes()
- Returns:
- the serialized-to-bytes
MatsTrace- which probably also are compressed. Along with these bytes, you need to supply back themetainformation when invokingMatsSerializer.deserializeMatsTrace(byte[], String).
-
getMeta
java.lang.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
deserializationmethod. - See Also:
MatsSerializer.META_KEY_POSTFIX
-
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.
-
-