public void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception { trace(info.createRemoveCommand()); super.removeConnection(context, info, error); }
@Override public void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception { super.removeConnection(context, info, error); ActiveMQTopic topic = AdvisorySupport.getConnectionAdvisoryTopic(); fireAdvisory(context, topic, info.createRemoveCommand()); connections.remove(info.getConnectionId()); }
public void doCleanup(boolean removeConnection) throws JMSException { if (advisoryConsumer != null && !isTransportFailed()) { advisoryConsumer.dispose(); advisoryConsumer = null; } for (Iterator<ActiveMQSession> i = this.sessions.iterator(); i.hasNext();) { ActiveMQSession s = i.next(); s.dispose(); } for (Iterator<ActiveMQConnectionConsumer> i = this.connectionConsumers.iterator(); i.hasNext();) { ActiveMQConnectionConsumer c = i.next(); c.dispose(); } if (removeConnection) { if (isConnectionInfoSentToBroker) { if (!transportFailed.get() && !closing.get()) { syncSendPacket(info.createRemoveCommand()); } isConnectionInfoSentToBroker = false; } if (userSpecifiedClientID) { info.setClientId(null); userSpecifiedClientID = false; } clientIDSet = false; } started.set(false); }
public void stop() throws Exception { try { if (connectionInfo != null) { localBroker.request(connectionInfo.createRemoveCommand()); remoteBroker.request(connectionInfo.createRemoveCommand()); } localBroker.setTransportListener(null); remoteBroker.setTransportListener(null); localBroker.oneway(new ShutdownInfo()); remoteBroker.oneway(new ShutdownInfo()); } finally { ServiceStopper ss = new ServiceStopper(); ss.stop(localBroker); ss.stop(remoteBroker); ss.throwFirstException(); } }
RemoveInfo removeCommand = info.createRemoveCommand(); removeCommand.setLastDeliveredSequenceId(lastDeliveredSequenceId); try {
remoteBroker.oneway(remoteConnectionInfo.createRemoveCommand());
void handleException(Throwable exception, MQTTFrame command) { LOG.warn("Exception occurred processing: \n" + command + ": " + exception.toString()); LOG.debug("Exception detail", exception); if (connected.get() && connectionInfo != null) { connected.set(false); sendToActiveMQ(connectionInfo.createRemoveCommand(), null); } stopTransport(); }
void handleException(Throwable exception, MQTTFrame command) { LOG.warn("Exception occurred processing: \n" + command + ": " + exception.toString()); LOG.debug("Exception detail", exception); if (connected.get() && connectionInfo != null) { connected.set(false); sendToActiveMQ(connectionInfo.createRemoveCommand(), null); } stopTransport(); }
void handleException(Throwable exception, MQTTFrame command) { LOG.warn("Exception occurred processing: \n" + command + ": " + exception.toString()); LOG.debug("Exception detail", exception); if (connected.get() && connectionInfo != null) { connected.set(false); sendToActiveMQ(connectionInfo.createRemoveCommand(), null); } stopTransport(); }
public void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception { trace(info.createRemoveCommand()); super.removeConnection(context, info, error); }
public void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception { trace(info.createRemoveCommand()); super.removeConnection(context, info, error); }
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.get()) { connected.set(false); sendToActiveMQ(connectionInfo.createRemoveCommand(), null); sendToActiveMQ(new ShutdownInfo(), null); } stopTransport(); }
@Override public void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception { super.removeConnection(context, info, error); ActiveMQTopic topic = AdvisorySupport.getConnectionAdvisoryTopic(); fireAdvisory(context, topic, info.createRemoveCommand()); connections.remove(info.getConnectionId()); }
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 void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception { super.removeConnection(context, info, error); ActiveMQTopic topic = AdvisorySupport.getConnectionAdvisoryTopic(); fireAdvisory(context, topic, info.createRemoveCommand()); connections.remove(info.getConnectionId()); }
protected void onStompDisconnect(StompFrame command) throws ProtocolException { if (connected.get()) { sendToActiveMQ(connectionInfo.createRemoveCommand(), createResponseHandler(command)); sendToActiveMQ(new ShutdownInfo(), createResponseHandler(command)); connected.set(false); } }
protected void onStompDisconnect(StompFrame command) throws ProtocolException { if (connected.get()) { sendToActiveMQ(connectionInfo.createRemoveCommand(), createResponseHandler(command)); sendToActiveMQ(new ShutdownInfo(), createResponseHandler(command)); connected.set(false); } }
protected void onStompDisconnect(StompFrame command) throws ProtocolException { if (connected.get()) { sendToActiveMQ(connectionInfo.createRemoveCommand(), createResponseHandler(command)); sendToActiveMQ(new ShutdownInfo(), createResponseHandler(command)); connected.set(false); } }
protected void onStompDisconnect(StompFrame command) throws ProtocolException { if (connected.get()) { sendToActiveMQ(connectionInfo.createRemoveCommand(), createResponseHandler(command)); sendToActiveMQ(new ShutdownInfo(), createResponseHandler(command)); connected.set(false); } }