|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.commandhandling.distributed.jgroups.support.callbacks.MemberAwareCommandCallback<R>
R - The expected type of return valuepublic class MemberAwareCommandCallback<R>
Callback implementation which wraps another callback, and is aware of the JGroups node responsible for providing the value to invoke the wrapped callback with.
| Constructor Summary | |
|---|---|
MemberAwareCommandCallback(org.jgroups.Address dest,
CommandCallback<R> callback)
Initialize the callback, where the given dest is responsible for providing the value to invoke the
given callback with. |
|
| Method Summary | |
|---|---|
boolean |
isMemberLive(org.jgroups.View view)
Indicates whether the node responsible for providing the value to invoke the callback with is still alive in the given currentView. |
void |
onFailure(Throwable cause)
Invoked when command handling execution resulted in an error. |
void |
onSuccess(R result)
Invoked when command handling execution was successful. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemberAwareCommandCallback(org.jgroups.Address dest,
CommandCallback<R> callback)
dest is responsible for providing the value to invoke the
given callback with.
dest - The destination of the command of which the result is to be passed to the callbackcallback - The callback to invoke with the result of the command| Method Detail |
|---|
public boolean isMemberLive(org.jgroups.View view)
currentView.
view - The view containing the currently available nodes in the JGroups cluster
true if the node is live, otherwise falsepublic void onSuccess(R result)
CommandCallback
onSuccess in interface CommandCallback<R>result - The result of the command handling execution, if any.public void onFailure(Throwable cause)
CommandCallback
onFailure in interface CommandCallback<R>cause - The exception raised during command handling
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||