public class StreetsideExportDownloadThread extends Thread implements ICachedLoaderListener
ArrayBlockingQueue
.Thread.State, Thread.UncaughtExceptionHandler
ICachedLoaderListener.LoadResult
Modifier and Type | Field and Description |
---|---|
private StreetsideImage |
image |
private ArrayBlockingQueue<BufferedImage> |
queue |
private ArrayBlockingQueue<StreetsideAbstractImage> |
queueImages |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
StreetsideExportDownloadThread(StreetsideImage image,
ArrayBlockingQueue<BufferedImage> queue,
ArrayBlockingQueue<StreetsideAbstractImage> queueImages)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
loadingFinished(CacheEntry data,
CacheEntryAttributes attributes,
ICachedLoaderListener.LoadResult result) |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private final ArrayBlockingQueue<BufferedImage> queue
private final ArrayBlockingQueue<StreetsideAbstractImage> queueImages
private final StreetsideImage image
public StreetsideExportDownloadThread(StreetsideImage image, ArrayBlockingQueue<BufferedImage> queue, ArrayBlockingQueue<StreetsideAbstractImage> queueImages)
image
- Image to be downloaded.queue
- Queue of BufferedImage
objects for the
StreetsideExportWriterThread
.queueImages
- Queue of StreetsideAbstractImage
objects for the
StreetsideExportWriterThread
.public void loadingFinished(CacheEntry data, CacheEntryAttributes attributes, ICachedLoaderListener.LoadResult result)
loadingFinished
in interface ICachedLoaderListener