Skip to content

Commit

Permalink
Merge pull request #42 from pankajjangid05/prod-development
Browse files Browse the repository at this point in the history
Prod development
  • Loading branch information
pankajjangid05 authored May 26, 2023
2 parents 6715f0e + 626c20f commit 537521d
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class OutboundKafkaController {
@Value("${spring.mail.recipient}")
private String recipient;

private static long count = 0;
private long notificationCount, otherCount;

@EventListener(ApplicationStartedEvent.class)
public void onMessage() {
Expand Down Expand Up @@ -128,10 +128,12 @@ 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);
if (provider.toLowerCase().equals("firebase") && channel.toLowerCase().equals("web")) {
logTimeTaken(startTime, 0, "Insert Record in Cass : " + count + " ::: process-end: %d ms");
if(provider.toLowerCase().equals("firebase") && channel.toLowerCase().equals("web")){
notificationCount++;
logTimeTaken(startTime, 0, "Notification Insert Record in Cass : " + notificationCount +" ::: process-end: %d ms");
} else {
otherCount++;
logTimeTaken(startTime, 0, "Other Insert Record in Cass : " + otherCount +" ::: process-end: %d ms");
}
}
});
Expand Down

0 comments on commit 537521d

Please sign in to comment.