public class StreetsideExportWriterThread extends Thread
StreetsideExportManagerThread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private int |
amount |
private ProgressMonitor |
monitor |
private String |
path |
private ArrayBlockingQueue<BufferedImage> |
queue |
private ArrayBlockingQueue<StreetsideAbstractImage> |
queueImages |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
StreetsideExportWriterThread(String path,
ArrayBlockingQueue<BufferedImage> queue,
ArrayBlockingQueue<StreetsideAbstractImage> queueImages,
int amount,
ProgressMonitor monitor)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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, yieldprivate final ArrayBlockingQueue<BufferedImage> queue
private final ArrayBlockingQueue<StreetsideAbstractImage> queueImages
private final int amount
private final ProgressMonitor monitor
public StreetsideExportWriterThread(String path, ArrayBlockingQueue<BufferedImage> queue, ArrayBlockingQueue<StreetsideAbstractImage> queueImages, int amount, ProgressMonitor monitor)
path - Path to write the pictures.queue - Queue of StreetsideAbstractImage objects.queueImages - Queue of BufferedImage objects.amount - Amount of images that are going to be exported.monitor - Progress monitor.