Hi, On Tue, Jan 26, 2010 at 10:56 PM, Ken Krugler <kkrugler_li...@transpac.com> wrote: >> The biggest problem with the FutureTask approach is that it's quite >> difficult if not impossible to support proper streaming with it. > > Could you provide more details about the problems here?
The main problem is that in the streaming case there is no single ParsedDatum instance that would be the result of the parsing process. Instead you have a sequence of SAX events that you should be able to deliver to the client application as soon as they become available without waiting for all the rest of the events to arrive first. Instead of a FutureTask, I'd envision us using a BlockingQueue or something similar to insert timeout handling between the parser that generates the SAX events from the client that consumes them. BR, Jukka Zitting