Tuesday 10 of June 2008 05:38:03 Roberts, Brendan Matthew - robbm005 napisaƂ(a):

> PipelinedConnection.java contains the use of BlockingQueues and 
> ExecutorServices that I'm unsure how to deal with and replace. Asmm mentioned 
> on IRC, that it may be possible to remove this class outright in the creation 
> of a client. Is this possible, why would it be so?

PipelinedConnection is used to write multithreaded programs and is mostly just 
a convenience (although very convenient). You could indeed remove it, if you 
can live with SimpleSequentialConnection and its quirks ;) Another possibility 
is to find a backported java.util.concurrent library and see if it of any use 
in MIDP.

> Connection.java contains the use of a Future<Void> receiveAllFrames() method. 
> I'm unsure how to deal with this, or how to replace it with something that 
> would work in J2ME.

This method is just a convenience too. And its removal would free Connection 
from Executors and stuff :) It's very simple and you could also repace it with 
something based on plain Threads without much difficulty, I think.
-- 
Ecce Jezuch
"Don't forget revolt, revolt,
revolution, counter revolution
counter counter revolution" - S. Tankian

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to