Interface ConsumerUpdateListener

    • Method Detail

      • update

        OffsetSpecification update​(ConsumerUpdateListener.Context context)
        Callback when the consumer status change.

        The method must return the offset specification to resume consumption from when the consumer becomes active. The broker will use the value to initialize the dispatching of messages from the appropriate location.

        The broker ignores the returned value when the consumer becomes inactive.

        Parameters:
        context - information on the status change
        Returns:
        the offset specification to consume from if the status is active