use of com.kloia.eventapis.view.AggregateListener in project eventapis by kloiasoft.
the class SpringKafkaOpListener method listenOperations.
@Transactional(rollbackFor = Exception.class)
@KafkaListener(id = "op-listener", topics = Operation.OPERATION_EVENTS, containerFactory = "operationsKafkaListenerContainerFactory")
void listenOperations(ConsumerRecord<String, Operation> record) {
String key = record.key();
Operation value = record.value();
log.debug("Incoming Message: " + key + " " + value);
userContext.extractUserContext(value.getUserContext());
for (AggregateListener snapshotRecorder : aggregateListeners) {
snapshotRecorder.listenOperations(record);
}
}
Aggregations