public final class KafkaSerializerMessageWriterImpl extends Object
| Constructor and Description |
|---|
KafkaSerializerMessageWriterImpl(org.apache.kafka.common.header.Headers headers) |
| Modifier and Type | Method and Description |
|---|---|
KafkaSerializerMessageWriterImpl |
create(io.cloudevents.SpecVersion version) |
byte[] |
end() |
R |
end(byte[] value) |
void |
setAttribute(String name,
String value) |
R |
setEvent(EventFormat format,
byte[] value) |
void |
setExtension(String name,
String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteBinary, writeStructured, writeStructuredpublic KafkaSerializerMessageWriterImpl(org.apache.kafka.common.header.Headers headers)
public KafkaSerializerMessageWriterImpl create(io.cloudevents.SpecVersion version)
public byte[] end()
public void setAttribute(String name, String value) throws io.cloudevents.rw.CloudEventRWException
setAttribute in interface io.cloudevents.rw.CloudEventAttributesWriterio.cloudevents.rw.CloudEventRWExceptionpublic void setExtension(String name, String value) throws io.cloudevents.rw.CloudEventRWException
setExtension in interface io.cloudevents.rw.CloudEventExtensionsWriterio.cloudevents.rw.CloudEventRWExceptionpublic R end(byte[] value)
throws io.cloudevents.rw.CloudEventRWException
end in interface io.cloudevents.rw.CloudEventWriter<R>io.cloudevents.rw.CloudEventRWExceptionpublic R setEvent(EventFormat format, byte[] value) throws io.cloudevents.rw.CloudEventRWException
setEvent in interface StructuredMessageWriter<R>io.cloudevents.rw.CloudEventRWExceptionCopyright © 2020. All rights reserved.