Interface ConsumerBuilder.SubscriptionListener
- Enclosing interface:
ConsumerBuilder
public static interface ConsumerBuilder.SubscriptionListener
Callback to modify a consumer subscription before the link creation.
This allows looking up the last processed offset for a stream consumer and attaching to this offset.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSubscription context. -
Method Summary
Modifier and TypeMethodDescriptionvoidPre-subscription callback.
-
Method Details
-
preSubscribe
Pre-subscription callback.It is called before the link is created but also every time it recovers, e.g. after a connection failure.
Configuration set with
ConsumerBuilder.SubscriptionListener.Context.streamOptions()overrides the one set withConsumerBuilder.stream().- Parameters:
context- subscription context
-