public final class ProtonAmqpMessageWriter<R> extends Object implements MessageWriter<io.cloudevents.rw.CloudEventWriter<Message>,Message>, io.cloudevents.rw.CloudEventWriter<Message>
This writer returns an AMQP message at the end of the write process.
| Constructor and Description |
|---|
ProtonAmqpMessageWriter()
Creates a proton-base message writer.
|
| Modifier and Type | Method and Description |
|---|---|
ProtonAmqpMessageWriter<R> |
create(io.cloudevents.SpecVersion version) |
Message |
end() |
Message |
end(io.cloudevents.CloudEventData data) |
Message |
setEvent(EventFormat format,
byte[] value) |
io.cloudevents.rw.CloudEventContextWriter |
withContextAttribute(String name,
String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteBinary, writeStructured, writeStructuredpublic ProtonAmqpMessageWriter()
public io.cloudevents.rw.CloudEventContextWriter withContextAttribute(String name, String value) throws io.cloudevents.rw.CloudEventRWException
withContextAttribute in interface io.cloudevents.rw.CloudEventContextWriterio.cloudevents.rw.CloudEventRWExceptionpublic ProtonAmqpMessageWriter<R> create(io.cloudevents.SpecVersion version)
public Message setEvent(EventFormat format, byte[] value) throws io.cloudevents.rw.CloudEventRWException
setEvent in interface StructuredMessageWriter<Message>io.cloudevents.rw.CloudEventRWExceptionpublic Message end(io.cloudevents.CloudEventData data) throws io.cloudevents.rw.CloudEventRWException
end in interface io.cloudevents.rw.CloudEventWriter<Message>io.cloudevents.rw.CloudEventRWExceptionCopyright © 2022. All rights reserved.