Interface GooglePubsubSerializer

  • All Known Implementing Classes:
    DefaultGooglePubsubSerializer

    public interface GooglePubsubSerializer
    An abstraction to customize how the GooglePubsubProducer serializes non String & byte[] message body payloads.
    • Method Detail

      • serialize

        byte[] serialize​(Object payload)
                  throws IOException
        Serializes an object payload to a byte array.
        Parameters:
        payload - The payload to serialize
        Returns:
        The serialized payload as a byte array
        Throws:
        IOException - If the serialization process encountered errors