Interface OutgoingCloudEventMetadata<T>

  • Type Parameters:
    T - the data type
    All Superinterfaces:
    CloudEventMetadata<T>
    All Known Implementing Classes:
    DefaultOutgoingCloudEventMetadata

    public interface OutgoingCloudEventMetadata<T>
    extends CloudEventMetadata<T>
    Represents the Cloud Event metadata for an outgoing message. The connector dispatching the message, if this connector supports Cloud Event, should write the outgoing message as a Cloud Event using the attribute set in this metadata. See https://github.com/cloudevents/spec/blob/v1.0/spec.md.
    • Method Detail

      • builder

        static <T> OutgoingCloudEventMetadataBuilder<T> builder()
        Gets a builder to create a new OutgoingCloudEventMetadata.
        Type Parameters:
        T - the type of data
        Returns:
        the builder
      • from

        static <T> OutgoingCloudEventMetadataBuilder<T> from​(OutgoingCloudEventMetadata<T> existing)
        Gets a builder to create a new OutgoingCloudEventMetadata. The values are copied from the given existing OutgoingCloudEventMetadata
        Type Parameters:
        T - the type of data
        Returns:
        the builder