Skip to content

Commit

Permalink
Notification testing using cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjangid05 committed May 11, 2023
1 parent b9ad68e commit 154deed
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public class OutboundKafkaController {
@Value("${spring.mail.recipient}")
private String recipient;

private static long count = 0;

@EventListener(ApplicationStartedEvent.class)
public void onMessage() {
reactiveKafkaReceiver
Expand Down Expand Up @@ -125,6 +127,8 @@ public void accept(Throwable e) {
@Override
public void accept(XMessageDAO xMessageDAO) {
log.info("XMessage Object saved is with sent user ID >> " + xMessageDAO.getUserId());
count++;
log.info("Insert Record in Cass : "+count);
}
});
} catch (Exception e) {
Expand Down

0 comments on commit 154deed

Please sign in to comment.