It still not clear to we why the Process interface needs to be unrelated to
standard Java API like Callable? Why the following can't work?
public interface Process extends Callable {
void addListener(ProgressListener);
void removeListener(ProgressListener);
void cancel();
}
Keeping in mind that the Process can implement a cancel() operation without the
need to keep a reference to Future? i.e. it could just set a flag and the
working threads can break cleanly its inner loop when the flag is set, in the
same way than Image I/O:
http://java.sun.com/javase/6/docs/api/javax/imageio/ImageReader.html#abort()
Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel