public void sendStats()

in dynamic-router-eip/dynamic-router-eip-stack/numbers-common/src/main/java/org/apache/camel/example/springboot/numbers/common/service/ProcessNumbersRoutingParticipant.java [86:93]


    public void sendStats() {
        int pCount = processedCount.get();
        if (pCount > reportedCount.get()) {
            CommandMessage command = new CommandMessage(COMMAND_STATS, Map.of(numberName, String.valueOf(pCount)));
            producerTemplate.sendBodyAndHeader(commandUri, command.toString(), HEADER_COMMAND, COMMAND_STATS);
            reportedCount.set(pCount);
        }
    }