Class AbstractDelegatingMessageListenerAdapter<T>

    • Field Detail

      • logger

        protected final org.springframework.core.log.LogAccessor logger
      • delegate

        protected final T delegate
    • Constructor Detail

      • AbstractDelegatingMessageListenerAdapter

        public AbstractDelegatingMessageListenerAdapter​(T delegate)
    • Method Detail

      • registerSeekCallback

        public void registerSeekCallback​(ConsumerSeekAware.ConsumerSeekCallback callback)
        Description copied from interface: ConsumerSeekAware
        Register the callback to use when seeking at some arbitrary time. When used with a ConcurrentMessageListenerContainer or the same listener instance in multiple containers listeners should store the callback in a ThreadLocal.
        Specified by:
        registerSeekCallback in interface ConsumerSeekAware
        Parameters:
        callback - the callback.
      • onPartitionsAssigned

        public void onPartitionsAssigned​(java.util.Map<org.apache.kafka.common.TopicPartition,​java.lang.Long> assignments,
                                         ConsumerSeekAware.ConsumerSeekCallback callback)
        Description copied from interface: ConsumerSeekAware
        When using group management, called when partition assignments change.
        Specified by:
        onPartitionsAssigned in interface ConsumerSeekAware
        Parameters:
        assignments - the new assignments and their current offsets.
        callback - the callback to perform an initial seek after assignment.
      • onIdleContainer

        public void onIdleContainer​(java.util.Map<org.apache.kafka.common.TopicPartition,​java.lang.Long> assignments,
                                    ConsumerSeekAware.ConsumerSeekCallback callback)
        Description copied from interface: ConsumerSeekAware
        If the container is configured to emit idle container events, this method is called when the container idle event is emitted - allowing a seek operation.
        Specified by:
        onIdleContainer in interface ConsumerSeekAware
        Parameters:
        assignments - the new assignments and their current offsets.
        callback - the callback to perform a seek.