Refine search
@Override public boolean iterate() { try { if (status.get() == PENDING_STOP || stopping.get()) { if (dispatchStopped.compareAndSet(false, true)) { if (transportException.get() == null) { try { dispatch(new ShutdownInfo()); } catch (Throwable ignore) { if (!dispatchStopped.get()) { Command command = null; synchronized (dispatchQueue) {
try { if (!closed.get() && !transportFailed.get()) { if (!closed.get()) { closing.set(true); doAsyncSendPacket(new ShutdownInfo());
public void stop() throws Exception { if (!started.compareAndSet(true, false)||!masterActive.get()) { return; } masterActive.set(false); try { // if (connectionInfo!=null){ // localBroker.request(connectionInfo.createRemoveCommand()); // } // localBroker.setTransportListener(null); // remoteBroker.setTransportListener(null); remoteBroker.oneway(new ShutdownInfo()); localBroker.oneway(new ShutdownInfo()); } catch (IOException e) { LOG.debug("Caught exception stopping", e); } finally { ServiceStopper ss = new ServiceStopper(); ss.stop(localBroker); ss.stop(remoteBroker); ss.throwFirstException(); } }
if (disposed.compareAndSet(false, true)) { peer.transportListener.onCommand(new ShutdownInfo()); } catch (Exception ignore) {
protected void onStompDisconnect(StompFrame command) throws ProtocolException { checkConnected(); sendToActiveMQ(connectionInfo.createRemoveCommand(), createResponseHandler(command)); sendToActiveMQ(new ShutdownInfo(), createResponseHandler(command)); connected.set(false); }
/** * @return a new object instance */ public DataStructure createObject() { return new ShutdownInfo(); }
void onMQTTDisconnect() throws MQTTProtocolException { if (connected.get()) { connected.set(false); sendToActiveMQ(connectionInfo.createRemoveCommand(), null); sendToActiveMQ(new ShutdownInfo(), null); } stopTransport(); }
void onMQTTDisconnect() throws MQTTProtocolException { if (connected.compareAndSet(true, false)) { sendToActiveMQ(connectionInfo.createRemoveCommand(), null); sendToActiveMQ(new ShutdownInfo(), null); } stopTransport(); }
public void stop() throws Exception { stopping.set(true); peer.transportListener.onCommand(new ShutdownInfo()); } catch (Exception ignore) { stopping.set(false); enqueueValve.turnOn();
/** * @return a new object instance */ public DataStructure createObject() { return new ShutdownInfo(); }
void onMQTTDisconnect() throws MQTTProtocolException { if (connected.get()) { connected.set(false); sendToActiveMQ(connectionInfo.createRemoveCommand(), null); sendToActiveMQ(new ShutdownInfo(), null); } stopTransport(); }
@Override public boolean iterate() { try { if (pendingStop.get() || stopping.get()) { if (dispatchStopped.compareAndSet(false, true)) { if (transportException.get() == null) { try { dispatch(new ShutdownInfo()); } catch (Throwable ignore) {
void onMQTTDisconnect() throws MQTTProtocolException { if (connected.compareAndSet(true, false)) { sendToActiveMQ(connectionInfo.createRemoveCommand(), null); sendToActiveMQ(new ShutdownInfo(), null); } stopTransport(); }
/** * @return a new object instance */ public DataStructure createObject() { return new ShutdownInfo(); }
protected void onStompDisconnect(StompFrame command) throws ProtocolException { if (connected.get()) { sendToActiveMQ(connectionInfo.createRemoveCommand(), createResponseHandler(command)); sendToActiveMQ(new ShutdownInfo(), createResponseHandler(command)); connected.set(false); } }
@Override public boolean iterate() { try { if (pendingStop.get() || stopping.get()) { if (dispatchStopped.compareAndSet(false, true)) { if (transportException.get() == null) { try { dispatch(new ShutdownInfo()); } catch (Throwable ignore) {
void onMQTTDisconnect() throws MQTTProtocolException { if (connected.compareAndSet(true, false)) { sendToActiveMQ(connectionInfo.createRemoveCommand(), null); sendToActiveMQ(new ShutdownInfo(), null); } stopTransport(); }
/** * @return a new object instance */ public DataStructure createObject() { return new ShutdownInfo(); }
protected void onStompDisconnect(StompFrame command) throws ProtocolException { if (connected.get()) { sendToActiveMQ(connectionInfo.createRemoveCommand(), createResponseHandler(command)); sendToActiveMQ(new ShutdownInfo(), createResponseHandler(command)); connected.set(false); } }
@Override public boolean iterate() { try { if (pendingStop.get() || stopping.get()) { if (dispatchStopped.compareAndSet(false, true)) { if (transportException.get() == null) { try { dispatch(new ShutdownInfo()); } catch (Throwable ignore) {