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:35:33 +0000 (10:35 +0100)
commitbab48fac3824b1dbf660881e5c517dc98ab9cc8f
tree79c85b7b8938ee7a7f091d50a2a28a72a1417189
parentec456b2c00027e54a49f3d916e89c831b2589186
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