public interface CommandCallback
onCommandDone or onCommandError will be called.
 | Modifier and Type | Method and Description | 
|---|---|
void | 
onCommandDone(CommandContext ctx,
             ExecutionResults results)
Executed as soon as command is executed successfully. 
 | 
void | 
onCommandError(CommandContext ctx,
              Throwable exception)
Executed only when command failed and all possible retries were already invoked. 
 | 
void onCommandDone(CommandContext ctx, ExecutionResults results)
ctx - - contextual data given by the executor serviceresults - - result produced by commandvoid onCommandError(CommandContext ctx, Throwable exception)
ctx - - contextual data given by the executor serviceexception - - exception that was thrown on last attempt to execute commandCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.