use of com.tvd12.ezyfox.util.EzyProcessor.processWithException in project ezyfox-server-example by tvd12.
the class KafkaConfig method config.
@Override
public void config() {
EzyKafkaProxy kafkaProxy = EzyKafkaProxy.builder().scan("org.youngmonkeys.example.push_message.kafka").ignoreUnknownComponents(true).addSingleton(responseFactory).build();
EzyKafkaConsumer consumer = kafkaProxy.getConsumer("message");
EzyProcessor.processWithException(consumer::start);
}
Aggregations