EventMessageEncoder


@UnstableApi
public final class EventMessageEncoder


Encodes data that can be decoded by EventMessageDecoder. This class isn't thread safe.

Summary

Public constructors

Public methods

byte[]
encode(EventMessage eventMessage)

Encodes an EventMessage to a byte array that can be decoded by .

Public constructors

EventMessageEncoder

public EventMessageEncoder()

Public methods

encode

public byte[] encode(EventMessage eventMessage)

Encodes an EventMessage to a byte array that can be decoded by .

Parameters
EventMessage eventMessage

The event message to be encoded.

Returns
byte[]

The serialized byte array.