Class StreetsideExportDownloadThread
- java.lang.Object
-
- java.lang.Thread
-
- org.openstreetmap.josm.plugins.streetside.io.export.StreetsideExportDownloadThread
-
- All Implemented Interfaces:
java.lang.Runnable,ICachedLoaderListener
public class StreetsideExportDownloadThread extends java.lang.Thread implements ICachedLoaderListener
This is the thread that downloads one of the images that are going to be exported and writes them in aArrayBlockingQueue.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.data.cache.ICachedLoaderListener
ICachedLoaderListener.LoadResult
-
-
Field Summary
Fields Modifier and Type Field Description private StreetsideImageimage(package private) static org.apache.log4j.Loggerloggerprivate java.util.concurrent.ArrayBlockingQueue<java.awt.image.BufferedImage>queueprivate java.util.concurrent.ArrayBlockingQueue<StreetsideAbstractImage>queueImages
-
Constructor Summary
Constructors Constructor Description StreetsideExportDownloadThread(StreetsideImage image, java.util.concurrent.ArrayBlockingQueue<java.awt.image.BufferedImage> queue, java.util.concurrent.ArrayBlockingQueue<StreetsideAbstractImage> queueImages)Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadingFinished(CacheEntry data, CacheEntryAttributes attributes, ICachedLoaderListener.LoadResult result)voidrun()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
logger
static final org.apache.log4j.Logger logger
-
queue
private final java.util.concurrent.ArrayBlockingQueue<java.awt.image.BufferedImage> queue
-
queueImages
private final java.util.concurrent.ArrayBlockingQueue<StreetsideAbstractImage> queueImages
-
image
private final StreetsideImage image
-
-
Constructor Detail
-
StreetsideExportDownloadThread
public StreetsideExportDownloadThread(StreetsideImage image, java.util.concurrent.ArrayBlockingQueue<java.awt.image.BufferedImage> queue, java.util.concurrent.ArrayBlockingQueue<StreetsideAbstractImage> queueImages)
Main constructor.- Parameters:
image- Image to be downloaded.queue- Queue ofBufferedImageobjects for theStreetsideExportWriterThread.queueImages- Queue ofStreetsideAbstractImageobjects for theStreetsideExportWriterThread.
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
loadingFinished
public void loadingFinished(CacheEntry data, CacheEntryAttributes attributes, ICachedLoaderListener.LoadResult result)
- Specified by:
loadingFinishedin interfaceICachedLoaderListener
-
-