public class KafkaCloudEventHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
KafkaCloudEventHelper.CloudEventMode |
Modifier and Type | Field and Description |
---|---|
static String |
CE_CONTENT_TYPE_PREFIX |
static String |
CE_HEADER_PREFIX |
static String |
KAFKA_HEADER_CONTENT_TYPE |
static String |
KAFKA_HEADER_FOR_CONTENT_TYPE |
static String |
KAFKA_HEADER_FOR_ID |
static String |
KAFKA_HEADER_FOR_SCHEMA |
static String |
KAFKA_HEADER_FOR_SOURCE |
static String |
KAFKA_HEADER_FOR_SPEC_VERSION |
static String |
KAFKA_HEADER_FOR_SUBJECT |
static String |
KAFKA_HEADER_FOR_TIME |
static String |
KAFKA_HEADER_FOR_TYPE |
static DateTimeFormatter |
RFC3339_DATE_FORMAT |
static String |
STRUCTURED_CONTENT_TYPE |
Modifier and Type | Method and Description |
---|---|
static org.apache.kafka.clients.producer.ProducerRecord<?,?> |
createBinaryRecord(Message<?> message,
String topic,
OutgoingKafkaRecordMetadata<?> metadata,
OutgoingCloudEventMetadata<?> ceMetadata,
KafkaConnectorOutgoingConfiguration configuration) |
static <T,K> IncomingKafkaCloudEventMetadata<K,T> |
createFromBinaryCloudEvent(org.apache.kafka.clients.consumer.ConsumerRecord<?,T> record) |
static <T,K> IncomingKafkaCloudEventMetadata<K,T> |
createFromStructuredCloudEvent(org.apache.kafka.clients.consumer.ConsumerRecord<K,T> record) |
static org.apache.kafka.clients.producer.ProducerRecord<?,?> |
createStructuredRecord(Message<?> message,
String topic,
OutgoingKafkaRecordMetadata<?> metadata,
OutgoingCloudEventMetadata<?> ceMetadata,
KafkaConnectorOutgoingConfiguration configuration) |
static KafkaCloudEventHelper.CloudEventMode |
getCloudEventMode(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record) |
public static final String KAFKA_HEADER_CONTENT_TYPE
public static final String CE_CONTENT_TYPE_PREFIX
public static final String CE_HEADER_PREFIX
public static final String STRUCTURED_CONTENT_TYPE
public static final String KAFKA_HEADER_FOR_SPEC_VERSION
public static final String KAFKA_HEADER_FOR_TYPE
public static final String KAFKA_HEADER_FOR_SOURCE
public static final String KAFKA_HEADER_FOR_ID
public static final String KAFKA_HEADER_FOR_SCHEMA
public static final String KAFKA_HEADER_FOR_CONTENT_TYPE
public static final String KAFKA_HEADER_FOR_SUBJECT
public static final String KAFKA_HEADER_FOR_TIME
public static final DateTimeFormatter RFC3339_DATE_FORMAT
public static <T,K> IncomingKafkaCloudEventMetadata<K,T> createFromStructuredCloudEvent(org.apache.kafka.clients.consumer.ConsumerRecord<K,T> record)
public static <T,K> IncomingKafkaCloudEventMetadata<K,T> createFromBinaryCloudEvent(org.apache.kafka.clients.consumer.ConsumerRecord<?,T> record)
public static org.apache.kafka.clients.producer.ProducerRecord<?,?> createBinaryRecord(Message<?> message, String topic, OutgoingKafkaRecordMetadata<?> metadata, OutgoingCloudEventMetadata<?> ceMetadata, KafkaConnectorOutgoingConfiguration configuration)
public static org.apache.kafka.clients.producer.ProducerRecord<?,?> createStructuredRecord(Message<?> message, String topic, OutgoingKafkaRecordMetadata<?> metadata, OutgoingCloudEventMetadata<?> ceMetadata, KafkaConnectorOutgoingConfiguration configuration)
public static KafkaCloudEventHelper.CloudEventMode getCloudEventMode(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record)
Copyright © 2018–2021 SmallRye. All rights reserved.