Search in sources :

Example 1 with StateVarsToNotify

use of org.apache.felix.upnp.basedriver.importer.core.event.structs.StateVarsToNotify in project felix by apache.

the class Notifier method run.

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());
            }
        }
    }
}
Also used : StateChanged(org.apache.felix.upnp.basedriver.importer.core.event.message.StateChanged) StateVarsToNotify(org.apache.felix.upnp.basedriver.importer.core.event.structs.StateVarsToNotify)

Aggregations

StateChanged (org.apache.felix.upnp.basedriver.importer.core.event.message.StateChanged)1 StateVarsToNotify (org.apache.felix.upnp.basedriver.importer.core.event.structs.StateVarsToNotify)1