public static interface SubscriptionListener.SubscriptionContext
| Modifier and Type | Method and Description |
|---|---|
OffsetSpecification |
offsetSpecification()
The offset specification computed by the library.
|
void |
offsetSpecification(OffsetSpecification offsetSpecification)
Set the offset specification to use for the subscription.
|
OffsetSpecification offsetSpecification()
If the consumer has no name, the value is the value set with ConsumerBuilder.offset(OffsetSpecification) on the first subscription and the offset of the
last dispatched message on subsequent calls (e.g. when the client re-subscribes after a
disconnection).
If the consumer has a name, the value is the last stored if any.
ConsumerBuilder.name(String)void offsetSpecification(OffsetSpecification offsetSpecification)
It overrides the value computed by the client.
offsetSpecification - the offset specification to useCopyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.