public class CloudEventDeserializer extends Object implements org.apache.kafka.common.serialization.Deserializer<io.cloudevents.CloudEvent>
Deserializer for CloudEvent.
To configure a CloudEventDataMapper, you can provide the instance through the configuration key MAPPER_CONFIG.
| Modifier and Type | Field and Description |
|---|---|
static String |
MAPPER_CONFIG
The configuration key for the
CloudEventDataMapper. |
| Constructor and Description |
|---|
CloudEventDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,?> configs,
boolean isKey) |
io.cloudevents.CloudEvent |
deserialize(String topic,
byte[] data) |
io.cloudevents.CloudEvent |
deserialize(String topic,
org.apache.kafka.common.header.Headers headers,
byte[] data) |
public static final String MAPPER_CONFIG
CloudEventDataMapper.public void configure(Map<String,?> configs, boolean isKey)
configure in interface org.apache.kafka.common.serialization.Deserializer<io.cloudevents.CloudEvent>public io.cloudevents.CloudEvent deserialize(String topic, byte[] data)
deserialize in interface org.apache.kafka.common.serialization.Deserializer<io.cloudevents.CloudEvent>public io.cloudevents.CloudEvent deserialize(String topic, org.apache.kafka.common.header.Headers headers, byte[] data)
deserialize in interface org.apache.kafka.common.serialization.Deserializer<io.cloudevents.CloudEvent>Copyright © 2024. All rights reserved.