public class DefaultGooglePubsubSerializer extends Object implements GooglePubsubSerializer
| Constructor and Description |
|---|
DefaultGooglePubsubSerializer() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
serialize(Object payload)
Serializes an object payload to a byte array.
|
public byte[] serialize(Object payload) throws IOException
GooglePubsubSerializerserialize in interface GooglePubsubSerializerpayload - The payload to serializeIOException - If the serialization process encountered errorsApache Camel