| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.commandhandling.distributed.jgroups.DispatchMessage
public class DispatchMessage
JGroups message that contains a CommandMessage that needs to be dispatched on a remote command bus segment. This
 class implements the Streamable interface for faster JGroups-specific serialization, but also supports
 Java serialization by implementing the Externalizable interface.
| Constructor Summary | |
|---|---|
| DispatchMessage()Default constructor required by the StreamableandExternalizableinterfaces. | |
| DispatchMessage(CommandMessage<?> commandMessage,
                Serializer serializer,
                boolean expectReply)Initialized a DispatchMessage for the given commandMessage, to be serialized using givenserializer. | |
| Method Summary | |
|---|---|
|  String | getCommandIdentifier()Returns the identifier of the command carried by this instance. | 
|  CommandMessage<?> | getCommandMessage(Serializer serializer)Returns the CommandMessage wrapped in this Message. | 
|  boolean | isExpectReply()Indicates whether the sender of this message requests a reply. | 
|  void | readExternal(ObjectInput in) | 
|  void | readFrom(DataInput in) | 
|  void | writeExternal(ObjectOutput out) | 
|  void | writeTo(DataOutput out) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DispatchMessage()
Streamable and Externalizable interfaces. Do not use
 directly.
public DispatchMessage(CommandMessage<?> commandMessage,
                       Serializer serializer,
                       boolean expectReply)
commandMessage, to be serialized using given
 serializer. expectReply indicates whether the sender will be expecting a reply.
commandMessage - The message to send to the remote segmentserializer - The serialize to serialize the message payload and metadata withexpectReply - whether or not the sender is waiting for a reply.| Method Detail | 
|---|
public boolean isExpectReply()
true if a reply is expected, otherwise false.public CommandMessage<?> getCommandMessage(Serializer serializer)
serializer - The serialize to deserialize message contents with
public String getCommandIdentifier()
public void writeTo(DataOutput out)
             throws IOException
writeTo in interface org.jgroups.util.StreamableIOException
public void readFrom(DataInput in)
              throws IOException
readFrom in interface org.jgroups.util.StreamableIOException
public void writeExternal(ObjectOutput out)
                   throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
                  throws IOException
readExternal in interface ExternalizableIOException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||