public class CloudEventDeserializer extends Object implements 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,
Headers headers,
byte[] data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic static final String MAPPER_CONFIG
CloudEventDataMapper.public void configure(Map<String,?> configs, boolean isKey)
configure in interface Deserializer<io.cloudevents.CloudEvent>public io.cloudevents.CloudEvent deserialize(String topic, byte[] data)
deserialize in interface Deserializer<io.cloudevents.CloudEvent>public io.cloudevents.CloudEvent deserialize(String topic, Headers headers, byte[] data)
deserialize in interface Deserializer<io.cloudevents.CloudEvent>Copyright © 2021. All rights reserved.