public class PongThread
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
java.lang.Object |
lock
Lock Object that works to synchronize and notify the thread
|
| Constructor and Description |
|---|
PongThread(DDSLayer entityManager,
java.util.UUID gatewayId)
Constructs the PongThread from Gateway´s DDS Manager instance and ID
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPingQuantity(byte pingId,
int pingQuantity)
Informs how many pings were sent to vehicles
|
void |
addPong(Ping pong)
Adds pongs received by Gateway
|
void |
run()
Starts the PongThread
|
activeCount, checkAccess, 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 java.lang.Object lock
public PongThread(DDSLayer entityManager, java.util.UUID gatewayId)
entityManager - Gateway´s CoreDX ManagergatewayId - Gateway´s Idpublic void addPong(Ping pong)
pong - the pong to be addedpublic void addPingQuantity(byte pingId,
int pingQuantity)
pingId - The specified pingIDpingQuantity - Number of pings sentpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread