|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
R - the type of result of the command handlingpublic interface CommandCallback<R>
Interface describing a callback that is invoked when command handler execution has finished. Depending of the outcome
of the execution, either the onSuccess(Object) or the onFailure(Throwable) is called.
| Method Summary | |
|---|---|
void |
onFailure(Throwable cause)
Invoked when command handling execution resulted in an error. |
void |
onSuccess(R result)
Invoked when command handling execution was successful. |
| Method Detail |
|---|
void onSuccess(R result)
result - The result of the command handling execution, if any.void onFailure(Throwable cause)
cause - The exception raised during command handling
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||