ListOffsetsRequest class
ListOffsets v2 for one explicitly selected partition and earliest/latest.
Uses consumer replica ID -1 and read-uncommitted isolation. Low-level callers must discover the leader and check API compatibility themselves. This request does not join a group, read commits, change a position or reset an offset.
- Inheritance
-
- Object
- KafkaRequest
- ListOffsetsRequest
Constructors
- ListOffsetsRequest(String topic, {int partition = 0, required KafkaOffsetPosition position})
- Validates the topic's nonempty UTF-8 STRING and nonnegative INT32 partition.
Properties
- apiKey → int
-
final
- apiVersion → int
-
final
- correlationId → int
-
finalinherited
- expectsResponse → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- partition → int
-
final
- position → KafkaOffsetPosition
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topic → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseResponse(
List< int> bytes) → ListOffsetsResponse -
override
-
toBytes(
) → List< int> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited