@KafkaListener(offsetReset = OffsetReset.EARLIEST, offsetStrategy = OffsetStrategy.DISABLED)
@Singleton
public class Listener {
  private Map<String, ConsumerRecord<String, String>> cache;

  @Topic(value = {
          "close-strategy-top-flop-5-w-90-d",
          "close-strategy-top-flop-10-w-90-d",
          "close-strategy-median-w-90-d",
          "close-strategy-top-flop-5-w-365-d",
          "close-strategy-top-flop-10-w-365-d",
          "close-strategy-median-w-365-d",
          "last-strategy-top-flop-5-w-1-d",
          "last-strategy-top-flop-10-w-1-d",
          "last-strategy-median-w-1-d"})
  public void receive(ConsumerRecord<String, String> record, Acknowledgement acknowledgement) {
    if (record.value() != null && record.value().trim().length() > 0) {
      cache().put(record.topic(), record);
    }
    acknowledgement.ack();
  }
  
  ...
}


