- Integer partition = record.partition();
- String user = record.key();
- String message = record.value();
- switch (message)
+ AdderResult result = state.get(partition).calculate(user);
+ log.info("{} - New result for {}: {}", id, user, result);
+ results.addResults(partition, user, result);
+ throttle();
+ }
+
+ private void throttle()
+ {
+ if (throttle.isPresent())