public interface SubscriptionListener
It is possible to change the computed OffsetSpecification in preSubscribe(SubscriptionContext) by using a custom offset tracking strategy.
This is an experimental API, subject to change.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SubscriptionListener.SubscriptionContext
Context object for the subscription.
|
| Modifier and Type | Method and Description |
|---|---|
void |
preSubscribe(SubscriptionListener.SubscriptionContext subscriptionContext)
Callback called before the subscription is created.
|
void preSubscribe(SubscriptionListener.SubscriptionContext subscriptionContext)
The method is called when a Consumer is created and it registers to broker, and also
when the subscription must be re-created (after a disconnection or when the subscription must
moved because the stream member it was connection becomes unavailable).
Application code can set the OffsetSpecification that will be used with the SubscriptionListener.SubscriptionContext.offsetSpecification(OffsetSpecification) method.
subscriptionContext - Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.