stats: 1.0.0 - Foreign stats are ignored during deserialization stats stats-1.0.0
authorKai Moritz <kai@juplo.de>
Tue, 25 Jun 2024 04:23:33 +0000 (06:23 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 25 Jun 2024 16:37:16 +0000 (18:37 +0200)
commit14a7c9bb8172f3a05fe5cf4f832e13e3ea23dde8
tree50f9d60c7fcaf013e5e63cc6277e17387428818a
parent8e5112c52f657efa2ba7265b2e5c4b59a048cf4f
stats: 1.0.0 - Foreign stats are ignored during deserialization

* Added a strongly typed mapping for the allowed known ``StatisticsType``'s
  for incomming messages.
* Unknown types therefore trigger a `DeserializationException`, before
  they can be processed and filtered by the application.
* Configured the `LogAndContinueExceptionHandler` as
  `default.deserialization.exception.handler`, therefore effectively
  ignoring the foreign messages of unknown type.
src/main/java/de/juplo/kafka/wordcount/stats/Key.java
src/main/java/de/juplo/kafka/wordcount/stats/StatsApplicationConfiguration.java
src/main/java/de/juplo/kafka/wordcount/stats/StatsStreamProcessor.java