ProduceResult class
Result of producing messages with Producer.
Constructors
-
ProduceResult.fromResponses(Iterable<
ProduceResponse> responses) -
factory
Properties
-
errors
→ Iterable<
KafkaServerError> -
Collection of all unique errors returned by the server.
final
- hasErrors → bool
-
Indicates whether any of server responses contain errors.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRetriableErrors → bool
-
Returns
true
if at least one server error in this result can be retried.no setter -
offsets
→ Map<
String, Map< int, int> > -
Offsets for latest messages for each topic-partition assigned by the server.
final
-
responses
→ List<
ProduceResponse> -
List of actual ProduceResponse objects returned by the server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
hasError(
int code) → bool -
Returns
true
if this result contains server error with specifiedcode
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited