Class EventMessageEncoder


  • public final class EventMessageEncoder
    extends Object
    Encodes data that can be decoded by EventMessageDecoder. This class isn't thread safe.
    • Constructor Detail

      • EventMessageEncoder

        public EventMessageEncoder()
    • Method Detail

      • encode

        public byte[] encode​(EventMessage eventMessage)
        Encodes an EventMessage to a byte array that can be decoded by EventMessageDecoder.
        Parameters:
        eventMessage - The event message to be encoded.
        Returns:
        The serialized byte array.