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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
serialize(Object payload)
Serializes an object payload to a byte array.
-
-
-
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
-
-