Interface CloudEventData


public interface CloudEventData
Interface that defines a wrapper for CloudEvent data.

This interface can be overridden to include any type of data inside a CloudEvent, given it has a method to convert back to bytes.

  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the bytes representation of this data instance.
  • Method Details

    • toBytes

      byte[] toBytes()
      Returns the bytes representation of this data instance.

      Note: depending on the implementation, this operation may be expensive.

      Returns:
      this data, represented as bytes.