Class MultiNodeKafkaResumeStrategy<K extends org.apache.camel.resume.Resumable>
- java.lang.Object
-
- org.apache.camel.processor.resume.kafka.SingleNodeKafkaResumeStrategy<K>
-
- org.apache.camel.processor.resume.kafka.MultiNodeKafkaResumeStrategy<K>
-
- 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
@Deprecated public class MultiNodeKafkaResumeStrategy<K extends org.apache.camel.resume.Resumable> extends SingleNodeKafkaResumeStrategy<K>
Deprecated.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 Summary
Constructors Constructor Description MultiNodeKafkaResumeStrategy(KafkaResumeStrategyConfiguration resumeStrategyConfiguration)
Deprecated.Create a new instance of this classMultiNodeKafkaResumeStrategy(KafkaResumeStrategyConfiguration resumeStrategyConfiguration, ExecutorService executorService)
Deprecated.Builds an instance of this class
-
Method Summary
-
Methods inherited from class org.apache.camel.processor.resume.kafka.SingleNodeKafkaResumeStrategy
build, checkAndSubscribe, checkAndSubscribe, close, consume, consume, doAdd, getAdapter, getPollDuration, getProducer, getProducerErrors, getResumeStrategyConfiguration, init, loadCache, poll, produce, resetProducerErrors, setAdapter, setPollDuration, start, stop, updateLastOffset
-
-
-
-
Constructor Detail
-
MultiNodeKafkaResumeStrategy
public MultiNodeKafkaResumeStrategy(KafkaResumeStrategyConfiguration resumeStrategyConfiguration)
Deprecated.Create a new instance of this class- Parameters:
resumeStrategyConfiguration
- the configuration to use for this strategy instance
-
MultiNodeKafkaResumeStrategy
public MultiNodeKafkaResumeStrategy(KafkaResumeStrategyConfiguration resumeStrategyConfiguration, ExecutorService executorService)
Deprecated.Builds an instance of this class- Parameters:
resumeStrategyConfiguration
- the configuration to use for this strategy instanceexecutorService
- an executor service that will run a separate thread for periodically refreshing the offsets
-
-