Class DefaultGooglePubsubSerializer
- java.lang.Object
-
- org.apache.camel.component.google.pubsub.serializer.DefaultGooglePubsubSerializer
-
- All Implemented Interfaces:
GooglePubsubSerializer
public class DefaultGooglePubsubSerializer extends Object implements GooglePubsubSerializer
Default GooglePubsubMessageSerializer that uses ObjectOutputStream to serialize objects.
-
-
Constructor Summary
Constructors Constructor Description DefaultGooglePubsubSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
serialize(Object payload)
Serializes an object payload to a byte array.
-
-
-
Method Detail
-
serialize
public byte[] serialize(Object payload) throws IOException
Description copied from interface:GooglePubsubSerializer
Serializes an object payload to a byte array.- Specified by:
serialize
in interfaceGooglePubsubSerializer
- Parameters:
payload
- The payload to serialize- Returns:
- The serialized payload as a byte array
- Throws:
IOException
- If the serialization process encountered errors
-
-