for (int i=0; i< numShards; i++)
{
this.offsets[i] = 0l;
- this.handlers[i] = new MessageHandler(new TopicPartition(topic, i));
+ this.handlers[i] = new MessageHandler(consumer, new TopicPartition(topic, i));
}
this.chatrooms = new Map[numShards];
}
package de.juplo.kafka.chat.backend.persistence.kafka;
+import de.juplo.kafka.chat.backend.domain.Message;
+import lombok.RequiredArgsConstructor;
+import org.apache.kafka.clients.consumer.Consumer;
+import org.apache.kafka.common.TopicPartition;
+
+
+@RequiredArgsConstructor
class MessageHandler
{
+ private final Consumer consumer;
+ private final TopicPartition tp;
+
+
+ void handleMessage(Message message)
+ {
+ }
}