KafkaGroupProcessing class
Opt-in, bounded processing for one session generation. Only acknowledgement of actually delivered objects advances processing candidates. Commits remain explicit, one topic and one immutable snapshot at a time; none are replayed.
An acknowledgement asserts successful application processing. It is not a durable offset, a transaction, a broker lease, or an exactly-once guarantee. Applications must handle duplicate effects and any work still running after revocation. Neither this handle nor cancellation drains application Futures.
Properties
-
acknowledgedNextOffsets
→ Map<
String, Map< int, int> > -
Candidate next offsets from acknowledged per-partition prefixes only.
Numeric gaps are permitted; batch ends and watermarks never advance this.
no setter
-
confirmedNextOffsets
→ Map<
String, Map< int, int> > -
Offsets confirmed by this handle's successful broker responses only, not
proof of present stored state when another client can overwrite the group.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- pendingRecordCount → int
-
Unretired ledger entries, including out-of-order acknowledgements blocked
behind an unfinished record. This does not count user-owned work or memory.
no setter
-
records
→ Stream<
KafkaGroupRecord> -
Same original synchronous admission boundary as KafkaGroupDelivery.records.
Async listener callbacks are not awaited. The bounded ledger stops further
admission at capacity while independent heartbeats continue.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stopped
→ Future<
KafkaGroupDeliveryTermination> -
No further original record callbacks; owned Fetch/data cleanup and the
actually admitted commit have settled. Inspect error/cleanupError. This is
independent of paused stream done and does not drain application work or
replace the session.closed membership/control cleanup result.
no setter
Methods
-
acknowledge(
KafkaGroupRecord record) → bool - Acknowledge this handle's exact delivered object after processing succeeds. Returns false for a duplicate acknowledgement while locally current. Unknown/fabricated objects and all post-revocation acknowledgements throw.
-
cancel(
) → Future< KafkaGroupDeliveryTermination> - Stops local admission and acknowledgement synchronously, cancels pending commit transport work, and awaits stopped. Cannot retract accepted writes.
-
commitAcknowledged(
String topic) → Future< KafkaGroupCommitResult> - Commits this assigned topic's advanced candidates, including the exact current generation/member. No arbitrary offsets or metadata are accepted. Other topics are separate operations, never an atomic multi-topic commit.
-
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