734735736737738739740741742
} hash.put(varName, valueObj); } Device device = service.getDevice(); StateChanged msg = new StateChanged(uuid, seq, hash, device, service); notifierQueue.enqueue(msg); } }
4243444546474849505152535455565758
} public void run() { while (running) { StateChanged msg = (StateChanged) notifierQueue.dequeue(); if (running) { StateVarsToNotify vars = null; if (msg.getSeq() == 0) { vars = new StateVarsToNotify(msg); monitor.putStateVars(msg.getSid(),vars); } else { monitor.updateStateVars(msg.getSid(),msg.getDictionary()); } } } }