- private volatile MessageHandlingStrategy strategy;
-
-
- public KafkaChatRoomService(
- Producer<String, MessageTo> producer,
- TopicPartition tp)
- {
- this.producer = producer;
- this.tp = tp;
- this.strategy = new ChatroomInactiveMessageHandlingStrategy(tp);
- }
-