Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 @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"));
 }