Interface StructuredMessageWriter<R>

Type Parameters:
R - return value at the end of the write process.
All Known Subinterfaces:
MessageWriter<CEV,R>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@ParametersAreNonnullByDefault @FunctionalInterface public interface StructuredMessageWriter<R>
Interface to write the MessageReader content (CloudEvents attributes, extensions and payload) to a new representation structured representation.
  • Method Summary

    Modifier and Type
    Method
    Description
    setEvent(EventFormat format, byte[] value)
    Write an event using the provided EventFormat.
  • Method Details

    • setEvent

      R setEvent(EventFormat format, byte[] value) throws io.cloudevents.rw.CloudEventRWException
      Write an event using the provided EventFormat.
      Throws:
      io.cloudevents.rw.CloudEventRWException