in jpa-idempotent-repository/src/main/java/org/acme/jpa/idempotent/repository/CostlyApiService.java [39:46]
void invoke(String content) {
if (ALREADY_USED_CONTENT.contains(content)) {
LOG.info("Costly API has been called two times with the same content => TOO MUCH EXPENSIVE !");
} else {
ALREADY_USED_CONTENT.add(content);
LOG.info("Costly API has been called with new content => GOOD");
}
}