|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectguarana.framework.message.Exchange
public class Exchange
Holds inbound and outbound messages of a task. This object is passed as a parameter
in the Task.doWork()
method.
Field Summary | |
---|---|
LinkedList<Message<?>>[] |
input
The input of the task. |
LinkedList<Message<?>>[] |
output
The output of the task. |
Constructor Summary | |
---|---|
Exchange(int numberOfInputs,
int numberOfOutputs)
Constructs a new exchange with a given number of input and output. |
Method Summary | |
---|---|
boolean |
hasAnyOutboundMessages()
Checks if this exchange has any output messages to be written to the output gateways of the task. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public LinkedList<Message<?>>[] input
input[0].poll()
.
public LinkedList<Message<?>>[] output
output[0].add(Message)
.
Constructor Detail |
---|
public Exchange(int numberOfInputs, int numberOfOutputs)
numberOfInputs
- The number of input.numberOfOutputs
- The number of output.Method Detail |
---|
public boolean hasAnyOutboundMessages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |