You're iterating through some collection of key-value pairs and then use
value from that pair within the entry processor, which is incorrect. You
should always use the one acquired via entry.getValue(); there.
I would actually recommend you to create a separate class instead of using
lambda for en
there is next code:
counters.forEach((key, value) -> {
TaskTicketsCounter outCounter = taskTicketCounterCache.invoke(key,
(entry, args) -> {
TaskTicketsCounter counter = entry.getValue();
if (counter != null) {
System.out.println(counter.get