Class DefaultGooglePubsubSerializer

    • Constructor Detail

      • DefaultGooglePubsubSerializer

        public DefaultGooglePubsubSerializer()
    • 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 interface GooglePubsubSerializer
        Parameters:
        payload - The payload to serialize
        Returns:
        The serialized payload as a byte array
        Throws:
        IOException - If the serialization process encountered errors