Class MultiNodeKafkaResumeStrategy<K extends org.apache.camel.resume.Resumable>

  • Type Parameters:
    K - the type of key
    All Implemented Interfaces:
    AutoCloseable, KafkaResumeStrategy<K>, org.apache.camel.resume.ResumeStrategy, org.apache.camel.resume.UpdatableConsumerResumeStrategy<K>, org.apache.camel.Service

    public class MultiNodeKafkaResumeStrategy<K extends org.apache.camel.resume.Resumable>
    extends SingleNodeKafkaResumeStrategy<K>
    A resume strategy that publishes offsets to a Kafka topic. This resume strategy is suitable for multi node integrations. This is suitable, for instance, when using clusters with the master component.
    • Constructor Detail

      • MultiNodeKafkaResumeStrategy

        public MultiNodeKafkaResumeStrategy​(KafkaResumeStrategyConfiguration resumeStrategyConfiguration)
        Create a new instance of this class
        Parameters:
        resumeStrategyConfiguration - the configuration to use for this strategy instance
      • MultiNodeKafkaResumeStrategy

        public MultiNodeKafkaResumeStrategy​(KafkaResumeStrategyConfiguration resumeStrategyConfiguration,
                                            ExecutorService executorService)
        Builds an instance of this class
        Parameters:
        resumeStrategyConfiguration - the configuration to use for this strategy instance
        executorService - an executor service that will run a separate thread for periodically refreshing the offsets