public boolean isCleanSession() { return connect.cleanSession(); }
public void setCleanSession(boolean cleanSession) { connect.cleanSession(cleanSession); }
public boolean isCleanSession() { return this.connect.cleanSession(); }
public boolean isCleanSession() { return connect.cleanSession(); }
public boolean isCleanSession() { return this.connect.cleanSession(); }
public boolean isCleanSession() { return this.connect.cleanSession(); }
public boolean isCleanSession() { return this.connect.cleanSession(); }
public void setCleanSession(boolean cleanSession) { connect.cleanSession(cleanSession); }
public boolean isCleanSession() { return this.connect.cleanSession(); }
@Override public void onConnect(CONNECT connect) throws MQTTProtocolException { List<SubscriptionInfo> subs = lookupSubscription(protocol.getClientId()); if (connect.cleanSession()) { deleteDurableSubs(subs); } else { restoreDurableSubs(subs); } }
@Override public void onConnect(CONNECT connect) throws MQTTProtocolException { List<SubscriptionInfo> subs = lookupSubscription(protocol.getClientId()); if (connect.cleanSession()) { deleteDurableSubs(subs); } else { restoreDurableSubs(subs); } }
@Override public void onConnect(CONNECT connect) throws MQTTProtocolException { List<SubscriptionInfo> subs = lookupSubscription(protocol.getClientId()); if (connect.cleanSession()) { deleteDurableSubs(subs); } else { restoreDurableSubs(subs); } }
@Override public void onConnect(CONNECT connect) throws MQTTProtocolException { List<ActiveMQQueue> queues = lookupQueues(protocol.getClientId()); List<SubscriptionInfo> subs = lookupSubscription(protocol.getClientId()); // When clean session is true we must purge all of the client's old Queue subscriptions // and any durable subscriptions created on the VirtualTopic instance as well. if (connect.cleanSession()) { deleteDurableQueues(queues); deleteDurableSubs(subs); } else { restoreDurableQueue(queues); restoreDurableSubs(subs); } }
@Override public void onConnect(CONNECT connect) throws MQTTProtocolException { List<ActiveMQQueue> queues = lookupQueues(protocol.getClientId()); List<SubscriptionInfo> subs = lookupSubscription(protocol.getClientId()); // When clean session is true we must purge all of the client's old Queue subscriptions // and any durable subscriptions created on the VirtualTopic instance as well. if (connect.cleanSession()) { deleteDurableQueues(queues); deleteDurableSubs(subs); } else { restoreDurableQueue(queues); restoreDurableSubs(subs); } }
@Override public void onConnect(CONNECT connect) throws MQTTProtocolException { List<ActiveMQQueue> queues = lookupQueues(protocol.getClientId()); List<SubscriptionInfo> subs = lookupSubscription(protocol.getClientId()); // When clean session is true we must purge all of the client's old Queue subscriptions // and any durable subscriptions created on the VirtualTopic instance as well. if (connect.cleanSession()) { deleteDurableQueues(queues); deleteDurableSubs(subs); } else { restoreDurableQueue(queues); restoreDurableSubs(subs); } }
public void attach() { queue.assertExecuting(); final MqttProtocolHandler h = handler; clean_session = h.connect_message.cleanSession(); security_context = h.security_context; h.command_handler = new UnitFn1<Object>() {
} else { if (!connect.cleanSession()) { CONNACK ack = new CONNACK(); ack.code(CONNACK.Code.CONNECTION_REFUSED_IDENTIFIER_REJECTED); getMQTTTransport().sendToMQTT(ack.encode()); if (connect.cleanSession()) { MQTTPacketIdGenerator.stopClientSession(getClientId()); } else {
} else { if (!connect.cleanSession()) { CONNACK ack = new CONNACK(); ack.code(CONNACK.Code.CONNECTION_REFUSED_IDENTIFIER_REJECTED); getMQTTTransport().sendToMQTT(ack.encode()); if (connect.cleanSession()) { MQTTPacketIdGenerator.stopClientSession(getClientId()); } else {
} else { if (!connect.cleanSession()) { CONNACK ack = new CONNACK(); ack.code(CONNACK.Code.CONNECTION_REFUSED_IDENTIFIER_REJECTED);
if( (connect_message.clientId() == null || connect_message.clientId().length==0) && !connect_message.cleanSession() ) { die(connack, "A clean session must be requested when no client id is provided.");