|
||||||||||
| 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.ReplyingCallback
public class ReplyingCallback
Callback implementation that forwards the callback invocation as a reply to an incoming message.
| Constructor Summary | |
|---|---|
ReplyingCallback(org.jgroups.JChannel channel,
org.jgroups.Address address,
CommandMessage commandMessage,
Serializer serializer)
Initialize the callback to send a reply for an incoming commandMessage to given address using the given channel. |
|
| Method Summary | |
|---|---|
void |
onFailure(Throwable cause)
Invoked when command handling execution resulted in an error. |
void |
onSuccess(Object 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 ReplyingCallback(org.jgroups.JChannel channel,
org.jgroups.Address address,
CommandMessage commandMessage,
Serializer serializer)
commandMessage to given address using the given channel.
The given serializer is used to serialize the reply message.
channel - The channel to send the reply onaddress - The destination for the reply messagecommandMessage - The incoming command messageserializer - The serializer to serialize the reply with| Method Detail |
|---|
public void onSuccess(Object result)
CommandCallback
onSuccess in interface CommandCallback<Object>result - The result of the command handling execution, if any.public void onFailure(Throwable cause)
CommandCallback
onFailure in interface CommandCallback<Object>cause - The exception raised during command handling
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||