@Override public void stop(ILifecycleProgressMonitor monitor) throws SiteWhereException { if (queue != null) { queue.suspend(); } }
@Override public void stop(ILifecycleProgressMonitor monitor) throws SiteWhereException { if (queue != null) { queue.suspend(); } }
public void suspend() { dispatchQueue.suspend(); }
@Override public void stop(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Stop multicaster if configured. if (multicaster != null) { multicaster.lifecycleStop(monitor); } // Stop route builder if configured. if (routeBuilder != null) { routeBuilder.lifecycleStop(monitor); } if (connection != null) { try { connection.disconnect(); connection.kill(); } catch (Exception e) { LOGGER.error("Error shutting down MQTT device event receiver.", e); } } if (queue != null) { queue.suspend(); } super.stop(monitor); }
@Override public void stop(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Stop multicaster if configured. if (multicaster != null) { multicaster.lifecycleStop(monitor); } // Stop route builder if configured. if (routeBuilder != null) { routeBuilder.lifecycleStop(monitor); } if (connection != null) { try { connection.disconnect(); connection.kill(); } catch (Exception e) { getLogger().error("Error shutting down MQTT device event receiver.", e); } } if (queue != null) { queue.suspend(); } super.stop(monitor); }
public void run() { if (manager_disconnected) { // we are not the assignment anymore.. go to the session manager // again to setup a new session. MqttSessionManager.attach(host(), client_id, next); } else { // so that we don't switch again until this current switch completes queue.suspend(); if (handler != null) { detach(); handler = null; } queue.execute(new Task() { public void run() { handler = next; attach(); } }); // switch the connection to the session queue.. next.connection()._set_dispatch_queue(queue, new Task() { public void run() { queue.resume(); } }); } } });
if (host.store() != null) { queue.suspend(); host.store().get_prefixed_map_entries(new AsciiBuffer("mqtt:"), Scala2Java.toScala(new UnitFn1<Seq<Tuple2<Buffer, Buffer>>>() { @Override