Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
EventDispatcher(EventChannel channel,
VehicleData vehicleData,
FaultCodes faultCodes)
The EventDispatcher takes
JSONObjects from the EventChannel queue,
parses them into events, and then hands them off to the VehicleData or
FaultCodes objects. |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
This object will continually attempt to take JSONObjects from the
EventChannel, parse them into events, and call VehicleData.notifyListeners.
|
void |
stopThread()
Interrupts the thread and exits the run method
|
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, yieldpublic EventDispatcher(EventChannel channel, VehicleData vehicleData, FaultCodes faultCodes)
JSONObjects from the EventChannel queue,
parses them into events, and then hands them off to the VehicleData or
FaultCodes objects.
All events passing through this runnable should be well-formed.channel - the EventChannel instance to usevehicleData - the VehicleData instance to use, for handling new vehicle datafaultCodes - the FaultCodes instance to use, for handling new fault code informationpublic void stopThread()
public void run()