public final class KafkaProducerMessageWriterImpl<K> extends Object
| Constructor and Description |
|---|
KafkaProducerMessageWriterImpl(String topic,
Integer partition,
Long timestamp,
K key) |
| Modifier and Type | Method and Description |
|---|---|
KafkaProducerMessageWriterImpl<K> |
create(io.cloudevents.SpecVersion version) |
org.apache.kafka.clients.producer.ProducerRecord<K,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 org.apache.kafka.clients.producer.ProducerRecord<K,byte[]> end()
public KafkaProducerMessageWriterImpl<K> create(io.cloudevents.SpecVersion version)
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.