![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2011
Posts: 8
![]() |
Is there a clean way to stop a BulkRetrievalThread? Specifically, I'm using BasicTiledImageLayer.makeLocal to cache small sections of imagery so they will be available offline. I can prompt the user about the expected file size, but if they accidentally click "ok" and the file set it really big, there's no way for them to stop the download. I put a ProgressPanel is a JFrame, and I can listen for when the close the window, but I hesitate to use something Thread.stop() and risk corrupting the cache.
|
|
|
|
|
|
#2 |
|
WWJ Technical Manager
Join Date: May 2007
Location: Seattle
Posts: 1,027
![]() |
Ideallly you'd be able to call interrupt() on the bulk downloader thread, but it looks like this will cause only Interrupted exceptions to be logged without stopping the process. We'll file a bug on this, but I'm not sure when we will be able to fix it.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I stop SessionCacheRetrievalPostProcessor? | jmajchrzak2 | Development Help | 5 | 07-12-2011 08:19 PM |
| Proper technique for Plugin to stop rendering if unchecked? - Stars3d | Ammianus | Developers' Corner | 1 | 09-14-2009 01:58 AM |
| Stop trying to save crap to the Program Files directory | Unregistered | Bug Reports | 6 | 10-16-2008 01:49 AM |
| Stop Earth from Mouse Drag | BowWow | Developers' Corner | 7 | 04-16-2007 04:49 PM |
| A way to Stop and Start downloading tiles. | nlneilson | Suggestion Box | 8 | 12-20-2006 12:17 AM |