Add deserializer to health indicator configuration

Fixes #17
This commit is contained in:
Marius Bogoevici
2016-08-25 08:25:30 -04:00
parent 34efddac8d
commit 96781b65bc

View File

@@ -55,6 +55,7 @@ public class KafkaBinderHealthIndicator implements HealthIndicator {
properties.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, this.configurationProperties
.getKafkaConnectionString());
properties.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, ByteArrayDeserializer.class.getName());
properties.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, ByteArrayDeserializer.class.getName());
KafkaConsumer metadataConsumer = new KafkaConsumer(properties);
try {
Set<String> downMessages = new HashSet<>();