Class DefaultGooglePubsubSerializer
java.lang.Object
org.apache.camel.component.google.pubsub.serializer.DefaultGooglePubsubSerializer
- All Implemented Interfaces:
GooglePubsubSerializer
Default GooglePubsubMessageSerializer that uses ObjectOutputStream to serialize objects.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultGooglePubsubSerializer
public DefaultGooglePubsubSerializer()
-
-
Method Details
-
serialize
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
-