feat: Introduced interface `ShardingPublisherStrategy`
authorKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 08:53:10 +0000 (09:53 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 09:06:30 +0000 (10:06 +0100)
commitd53ef6cdaa5480e2f6a01499603dcb9f32350c1b
tree2aaa4c7034317f194e03329aabce08f5040a661b
parent2adb71f86149f3b7da0ecd5b5eba5ba8341ad503
feat: Introduced interface `ShardingPublisherStrategy`

* The interface is used by `DataChannel` to publish the changed ownership
  each time, a new partition is assigned to the consumer-group.
* Added a dummy-implementation in `KafkaServicesConfiguration`.
src/main/java/de/juplo/kafka/chat/backend/domain/ShardingPublisherStrategy.java [new file with mode: 0644]
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/DataChannel.java
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesConfiguration.java
src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaTestUtils.java