Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For some use cases, it's required to set different configs for different consumers. Thus, we should add two new prefix for restore and global consumer.  

We might also consider to extend `KafkaClientSupplier` and add a `getGlobalConsumer()` method.

Public Interfaces

Code Block
languagejava
// KafkaClientSupplier consumer APIs: 
Consumer<byte[], byte[]> getConsumer(final Map<String, Object> config);
Consumer<byte[], byte[]> getRestoreConsumer(final Map<String, Object> config);
// New API for global consumer:
Consumer<byte[], byte[]> getGlobalConsumer(final Map<String, Object> config); 

...