ProduceRequest class
Experimental Produce v3 request with uncompressed magic-2 record batches.
Transactions, idempotence, compression and automatic retries are unsupported. Low-level callers must route this request to the partition leader and verify broker API compatibility before sending it.
- Inheritance
-
- Object
- KafkaRequest
- ProduceRequest
Constructors
-
ProduceRequest({required int acks, required int timeoutMs, required List<
TopicData> topicData}) -
Creates a request; rejects invalid
acksor negativetimeoutMs.
Properties
- acks → int
-
Required acknowledgments:
0none,1leader,-1in-sync replicas.final - apiKey → int
-
Kafka Produce API key.
final
- apiVersion → int
-
Implemented wire version; this request always uses Produce v3.
final
- correlationId → int
-
finalinherited
- expectsResponse → bool
-
Whether the broker is expected to return a response for this request.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutMs → int
-
Broker acknowledgment timeout in milliseconds, not a client deadline.
final
-
topicData
→ List<
TopicData> -
Topics and explicit partitions containing the records to append.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseResponse(
List< int> bytes) → ProduceResponse -
Decodes a v3 response including correlation ID but excluding size prefix.
override
-
toBytes(
) → List< int> -
Encodes the request including its four-byte network size prefix.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited