public class SendMessageTask
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
SendMessageTask(Gateway gateway,
AssociatedNode node,
byte[] rawMessage)
Constructs the task from Gateway´s instance, the node and its rawMessage
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Sends the rawMessage to the node
|
public SendMessageTask(Gateway gateway, AssociatedNode node, byte[] rawMessage)
gateway
- Gateway´s instance used in case of sending errornode
- The node that should receive the rawMessagerawMessage
- The rawMessage itself