public void onCommandDone(CommandContext ctx, ExecutionResults results) { String businessKey = (String) ctx.getData("businessKey"); logger.info( "Before Incrementing = {}", ((AtomicLong) BasicExecutorBaseTest.cachedEntities.get(businessKey)).get()); ((AtomicLong) BasicExecutorBaseTest.cachedEntities.get(businessKey)).incrementAndGet(); logger.info("After Incrementing = {}", BasicExecutorBaseTest.cachedEntities.get(businessKey)); }
@Override public void onCommandError(CommandContext ctx, Throwable exception) { logger.info( "Command for request with business key {} failed an no more retries will be performed", ctx.getData("businessKey")); }