@Service public class JobHistoryEventReader extends Object
| Constructor and Description |
|---|
JobHistoryEventReader(JobHistoryEventService jobHistoryEventService,
LostEventAppService lostEventAppService) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.kafka.clients.consumer.KafkaConsumer<String,br.pucrio.tecgraf.soma.job.JobHistoryEvent> |
buildKafkaConsumer(String kafkaServer,
String schemaRegistryUrl,
String topic,
String group) |
protected void |
readRecords(org.apache.kafka.clients.consumer.KafkaConsumer<String,br.pucrio.tecgraf.soma.job.JobHistoryEvent> consumer) |
void |
run(String kafkaServer,
String schemaRegistryUrl,
String topic,
String group) |
@Autowired public JobHistoryEventReader(JobHistoryEventService jobHistoryEventService, LostEventAppService lostEventAppService)
public void run(String kafkaServer, String schemaRegistryUrl, String topic, String group) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected void readRecords(org.apache.kafka.clients.consumer.KafkaConsumer<String,br.pucrio.tecgraf.soma.job.JobHistoryEvent> consumer) throws InterruptedException, IOException
InterruptedExceptionIOExceptionCopyright © 2019. All rights reserved.