B
Brian C
I'm writing my first asynchronous application ... spidering a website.
Each call to process a page records the page info and recursively and
asynchronously calls the routine to spider the (internal) links on
that page.
I'm currently writing the pages (titles, urls, etc) into an
arraylist. Then when the spidering is done I will use the arraylist
info in the next part of the project.
How do I detect when all the spidering is done and I can move on to
the next step?
Each call to process a page records the page info and recursively and
asynchronously calls the routine to spider the (internal) links on
that page.
I'm currently writing the pages (titles, urls, etc) into an
arraylist. Then when the spidering is done I will use the arraylist
info in the next part of the project.
How do I detect when all the spidering is done and I can move on to
the next step?