You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -54,6 +55,13 @@ This property is used to discriminate the producer's protocol and provide protoc
54
55
55
56
The class object of the payload that will be published to this channel.
56
57
58
+
### Header
59
+
60
+
Optional. The headers describing the metadata of the payload.
61
+
By default, `AsyncHeaders.NOT_DOCUMENTED` is used to indicate that no explicit header documentation exists.
62
+
Use `AsyncHeaders` to add your custom headers, use `AsyncHeaders.NOT_USED` if you do not use headers and `AsyncHeadersForCloudEventsBuilder` if your events follow the CloudEvent specification.
63
+
64
+
57
65
## `AmqpProducerData`
58
66
59
67
The above Kafka `ProducerData` equivalent in `AmqpProducerData`:
@@ -100,6 +108,7 @@ The above Kafka `ProducerData` simplifies to the following `KafkaProducerData`:
100
108
.topicName("example-producer-topic")
101
109
.description("Optional. Customer uploaded an example payload")
102
110
.payloadType(ExamplePayloadDto.class)
111
+
.headers(AsyncHeaders.NOT_USED)
103
112
.build();
104
113
```
105
114
@@ -115,6 +124,12 @@ Optional. The description allows for human-friendly text to verbosely explain th
115
124
116
125
The class object of the payload that will be published to this channel.
117
126
127
+
### Headers
128
+
129
+
The Kafka headers describing the metadata of the payload, more details in the generic ProducerData.
130
+
131
+
The Springwolf Kafka plugin comes with a special `AsyncHeadersForSpringKafkaBuilder` to document the `__TypeId__` header of the spring-kafka dependency.
132
+
118
133
### Example
119
134
120
135
See a full example [here](https://github.com/springwolf/springwolf-core/blob/master/springwolf-examples/springwolf-kafka-example/src/main/java/io/github/stavshamir/springwolf/example/configuration/AsyncApiConfiguration.java).
@@ -54,6 +55,13 @@ This property is used to discriminate the consumer's protocol and provide protoc
54
55
55
56
The class object of the payload that will be consumed from this channel.
56
57
58
+
### Header
59
+
60
+
Optional. The headers describing the metadata of the payload.
61
+
By default, `AsyncHeaders.NOT_DOCUMENTED` is used to indicate that no explicit header documentation exists.
62
+
Use `AsyncHeaders` to add your custom headers, use `AsyncHeaders.NOT_USED` if you do not use headers and `AsyncHeadersForCloudEventsBuilder` if your events follow the CloudEvent specification.
63
+
64
+
57
65
## `AmqpConsumerData`
58
66
59
67
The above Kafka `ConsumerData` equivalent in `AmqpConsumerData`:
@@ -100,6 +108,7 @@ The above Kafka `ConsumerData` simplifies to the following `KafkaConsumerData`:
100
108
.topicName("example-consumer-topic")
101
109
.description("Optional. Customer uploaded an example payload")
102
110
.payloadType(ExamplePayloadDto.class)
111
+
.headers(AsyncHeaders.NOT_USED)
103
112
.build();
104
113
```
105
114
@@ -115,6 +124,13 @@ Optional. The description allows for human-friendly text to verbosely explain th
115
124
116
125
The class object of the payload that will be consumed from this channel.
117
126
127
+
### Headers
128
+
129
+
The Kafka headers describing the metadata of the payload, more details in the generic ConsumerData.
130
+
131
+
The Springwolf Kafka plugin comes with a special `AsyncHeadersForSpringKafkaBuilder` to document the `__TypeId__` header of the spring-kafka dependency.
132
+
133
+
118
134
### Example
119
135
120
136
See a full example [here](https://github.com/springwolf/springwolf-core/blob/master/springwolf-examples/springwolf-kafka-example/src/main/java/io/github/stavshamir/springwolf/example/configuration/AsyncApiConfiguration.java).
0 commit comments