PartitionResponse class
Represents the response for a specific partition in a produce request.
Constructors
- PartitionResponse({required int index, required int errorCode, required int baseOffset, int logAppendTimeMs = -1})
-
Creates a partition append result without interpreting
errorCode.
Properties
- baseOffset → int
-
Broker-assigned offset of the first appended record on success.
final
- errorCode → int
-
Kafka protocol error code;
0means success.final - hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
Zero-based partition index.
final
- logAppendTimeMs → int
-
Broker append timestamp in epoch milliseconds, or
-1for CreateTime.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns a JSON-compatible summary of the append result.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited