public class ThumbnailThread
extends java.lang.Thread
Modifier and Type | Class and Description |
---|---|
static interface |
ThumbnailThread.Listener
Listener interface for completed thumbnails.
|
static class |
ThumbnailThread.Task
A single thumbnailer task.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Queue<ThumbnailThread.Task> |
queue
Queue of thumbnails to generate.
|
private boolean |
shutdown
Flag to signal shutdown.
|
private static ThumbnailThread |
THREAD
The static thumbnail thread.
|
Constructor and Description |
---|
ThumbnailThread() |
Modifier and Type | Method and Description |
---|---|
private void |
generateThumbnail(ThumbnailThread.Task ti)
Generate a single Thumbnail.
|
static ThumbnailThread.Task |
queue(ThumbnailThread.Listener callback)
Queue a thumbnail task in a global thumbnail thread.
|
void |
run() |
static void |
unqueue(ThumbnailThread.Task task)
Remove a pending task from the queue.
|
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 java.util.Queue<ThumbnailThread.Task> queue
private boolean shutdown
private static ThumbnailThread THREAD
public static ThumbnailThread.Task queue(ThumbnailThread.Listener callback)
callback
- Callbackpublic static void unqueue(ThumbnailThread.Task task)
task
- Task to remove.private void generateThumbnail(ThumbnailThread.Task ti)
ti
- Visualization taskpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Copyright © 2019 ELKI Development Team. License information.