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
Copy file name to clipboardExpand all lines: docs/producer.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,15 @@ Options:
20
20
|`producerEpoch`|`number`| Producer epoch. |
21
21
|`idempotent`|`boolean`| Idempotency of the producer. |
22
22
|`acks`|`number`| Acknowledgement to wait before returning.<br/><br/>Valid values are defined in the `ProduceAcks` enumeration. |
23
-
|`compression`|`string`| Compression algorithm to use before sending messages to the broker.<br/><br/>Valid values are exported in the `CompressionAlgorithms` enumeration. |
23
+
|`compression`|`string`| Compression algorithm to use before sending messages to the broker.<br/><br/>Valid values are: `snappy`, `lz4`, `gzip`, `zstd`|
24
24
|`partitioner`|`(message: MessageToProduce<Key, Value, HeaderKey, HeaderValue>) => number`| Partitioner to use to assign a partition to messages that lack it.<br/><br/>It is a function that receives a message and should return the partition number. |
25
25
|`repeatOnStaleMetadata`|`boolean`| Whether to retry a produce operation when the system detects outdated topic or broker information.<br/><br/>Default is `true`. |
26
26
|`serializers`|`Serializers<Key, Value, HeaderKey, HeaderValue>`| Object that specifies which serialisers to use.<br/><br/>The object should only contain one or more of the `key`, `value`, `headerKey` and `headerValue` properties. |
27
27
28
28
It also supports all the constructor options of `Base`.
0 commit comments