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(io.cloudevents.CloudEventData value) |
R |
setEvent(EventFormat format,
byte[] value) |
io.cloudevents.kafka.impl.BaseKafkaMessageWriterImpl<R> |
withContextAttribute(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 io.cloudevents.kafka.impl.BaseKafkaMessageWriterImpl<R> withContextAttribute(String name, String value) throws io.cloudevents.rw.CloudEventRWException
withContextAttribute in interface io.cloudevents.rw.CloudEventContextWriterio.cloudevents.rw.CloudEventRWExceptionpublic R end(io.cloudevents.CloudEventData 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 © 2024. All rights reserved.