Skip to content

Commit b527b98

Browse files
committed
financial app work
1 parent 7377f00 commit b527b98

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

financial/springboot-backend/src/main/java/oracleai/kafka/OrderConsumerService.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,6 @@ public void runConsumer() {
5656
}
5757
}
5858

59-
public void consumeMessages() {
60-
consumer.subscribe(topics);
61-
ConsumerRecords<String, String> records = consumer.poll(Duration.ofMillis(100));
62-
//process records
63-
Connection connection = consumer.getDBConnection();
64-
if(somethingWentWrong) connection.rollback();
65-
else consumer.commitSync();
66-
}
67-
6859
@Override
6960
public void close() {
7061
if (this.consumer != null) {

0 commit comments

Comments
 (0)