Interface StructuredMessageReader

All Known Subinterfaces:
MessageReader
All Known Implementing Classes:
BaseBinaryMessageReader, BaseGenericBinaryMessageReaderImpl, BaseStructuredMessageReader, GenericStructuredMessageReader
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @ParametersAreNonnullByDefault public interface StructuredMessageReader
Represents a CloudEvent message in structured mode.
  • Method Summary

    Modifier and Type
    Method
    Description
    from(io.cloudevents.CloudEvent event, EventFormat format)
    Create a generic structured message from a CloudEvent.
    from(io.cloudevents.CloudEvent event, String contentType)
    Create a generic structured message from a CloudEvent.
    <R> R
    Read self using the provided writer.
    default io.cloudevents.CloudEvent
     
    default io.cloudevents.CloudEvent
    toEvent(io.cloudevents.rw.CloudEventDataMapper<? extends io.cloudevents.CloudEventData> mapper)
     
  • Method Details