37 |
|
public CIWrapper(ClientInterface destination, Queue queue){ |
38 |
|
_destination = destination; |
39 |
|
_queue = queue; |
40 |
+ |
_queueID = queue.getQueue(); |
41 |
|
} |
42 |
|
|
43 |
|
//---PUBLIC METHODS--- |
46 |
|
* start the thread and thus gets and sends data |
47 |
|
*/ |
48 |
|
public void run() { |
48 |
– |
int n = _queue.getQueue(); |
49 |
|
String xml = null; |
50 |
|
while(true) { |
51 |
|
try { |
78 |
|
* A reference to a Queue object. |
79 |
|
*/ |
80 |
|
private Queue _queue; |
81 |
+ |
|
82 |
+ |
/** |
83 |
+ |
* Our Queue id. |
84 |
+ |
*/ |
85 |
+ |
private int _queueID; |
86 |
|
|
87 |
|
/** |
88 |
|
* the interface this thread is sending data to |