public abstract class ThreadedEventQueue extends MediaThread
Thread.State, Thread.UncaughtExceptionHandlermediaThreadGroupMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ThreadedEventQueue() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatchEvents()
Wait until there is something in the event queue to process.
|
void |
kill()
kill the thread.
|
void |
postEvent(ControllerEvent evt)
Queue the given event in the event queue.
|
protected abstract void |
processEvent(ControllerEvent evt)
Invoked when there is at least one event in the queue.
|
void |
run()
An inifinite while loop to dispatch ControllerEvent.
|
getMediaThreadGroup, useAudioPriority, useControlPriority, useNetworkPriority, useVideoPriorityactiveCount, 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, yieldprotected abstract void processEvent(ControllerEvent evt)
protected void dispatchEvents()
public void postEvent(ControllerEvent evt)
public void kill()
Copyright © 2012 code4tv.com. All Rights Reserved.