Modifier and Type | Class and Description |
---|---|
static interface |
ThumbnailThread.Listener
Listener interface for completed thumbnails.
|
static class |
ThumbnailThread.Task
A single thumbnailer task.
|
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private Queue<ThumbnailThread.Task> |
queue
Queue of thumbnails to generate.
|
private boolean |
shutdown
Flag to signal shutdown.
|
private static ThumbnailThread |
THREAD
The static thumbnail thread.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
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.
|
private void |
queue(ThumbnailThread.Task task)
Queue a new thumbnail task.
|
void |
run() |
private void |
shutdown()
Set the shutdown flag.
|
static void |
SHUTDOWN()
Shutdown the thumbnailer thread.
|
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 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.public static void SHUTDOWN()
private void queue(ThumbnailThread.Task task)
task
- Thumbnail taskprivate void generateThumbnail(ThumbnailThread.Task ti)
ti
- Visualization taskprivate void shutdown()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.