DVKafkaClient class abstract

What this adapter needs from a Kafka client.

An interface rather than a socket, so the queue semantics are testable without a cluster and so the wire protocol, partition leadership and consumer-group membership stay in one place.

Constructors

DVKafkaClient()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

commit(String topic, int offset) → Future<void>
Commit offset as consumed, so a restart resumes after it.
committed(String topic) → Future<int>
The committed position, which is where a restart resumes.
endOffset(String topic) → Future<int>
The offset one past the last record.
fetchOne(String topic) → Future<DVKafkaRecord?>
Read one record from the committed position, or null when at the end.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
produce(String topic, List<int> value) → Future<int>
Append a record to topic, returning its offset.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited