Examples of RemoveInfo


Examples of org.apache.activemq.command.RemoveInfo

     * @param error null if the client requested the disconnect or the error that caused the client to disconnect.
     * @throws Exception
     */
    public void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception{
        super.removeConnection(context,info,error);
        sendAsyncToSlave(new RemoveInfo(info.getConnectionId()));
    }
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo

     * @param info
     * @throws Exception
     */
    public void removeSession(ConnectionContext context, SessionInfo info) throws Exception{
        super.removeSession(context, info);
        sendAsyncToSlave(new RemoveInfo(info.getSessionId()));
      
       
    }
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo

     * @param info
     * @throws Exception
     */
    public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception{
        super.removeProducer(context, info);
        sendAsyncToSlave(new RemoveInfo(info.getProducerId()));
    }
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo

            if (command instanceof ConsumerInfo) {
                count = consumerCount.incrementAndGet();
                count = extractConsumerCountFromMessage(message, count);
                fireConsumerEvent(new ConsumerStartedEvent(this, destination, (ConsumerInfo)command, count));
            } else if (command instanceof RemoveInfo) {
                RemoveInfo removeInfo = (RemoveInfo)command;
                if (removeInfo.isConsumerRemove()) {
                    count = consumerCount.decrementAndGet();
                    count = extractConsumerCountFromMessage(message, count);
                    fireConsumerEvent(new ConsumerStoppedEvent(this, destination, (ConsumerId)removeInfo.getObjectId(), count));
                }
            } else {
                LOG.warn("Unknown command: " + command);
            }
        } else {
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo

        }
    }

    void doClose() throws JMSException {
        dispose();
        RemoveInfo removeCommand = info.createRemoveCommand();
        if (LOG.isDebugEnabled()) {
            LOG.debug("remove: " + this.getConsumerId() + ", lastDeliveredSequenceId:" + lastDeliveredSequenceId);
        }
        removeCommand.setLastDeliveredSequenceId(lastDeliveredSequenceId);
        this.session.asyncSendPacket(removeCommand);
    }
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo

                    if (isConnectionInfoSentToBroker) {
                        // If we announced ourselfs to the broker.. Try to let
                        // the broker
                        // know that the connection is being shutdown.
                        RemoveInfo removeCommand = info.createRemoveCommand();
                        removeCommand.setLastDeliveredSequenceId(lastDeliveredSequenceId);
                        doSyncSendPacket(info.createRemoveCommand(), closeTimeout);
                        doAsyncSendPacket(new ShutdownInfo());
                    }

                    ServiceSupport.dispose(this.transport);
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo

                    if (isConnectionInfoSentToBroker) {
                        // If we announced ourselfs to the broker.. Try to let
                        // the broker
                        // know that the connection is being shutdown.
                        RemoveInfo removeCommand = info.createRemoveCommand();
                        removeCommand.setLastDeliveredSequenceId(lastDeliveredSequenceId);
                        doSyncSendPacket(info.createRemoveCommand(), closeTimeout);
                        doAsyncSendPacket(new ShutdownInfo());
                    }

                    ServiceSupport.dispose(this.transport);
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo

        }
    }

    void doClose() throws JMSException {
        dispose();
        RemoveInfo removeCommand = info.createRemoveCommand();
        removeCommand.setLastDeliveredSequenceId(lastDeliveredSequenceId);
        this.session.asyncSendPacket(removeCommand);
    }
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo

        });
        path2Msg = new ActiveMQMessage();
        path2Msg.setDestination(path1Msg.getDestination());
        path2Msg.setDataStructure(path2);

        RemoveInfo removePath1 = new RemoveInfo(path1.getConsumerId());
        RemoveInfo removePath2 = new RemoveInfo(path2.getConsumerId());

        removePath1Msg = new ActiveMQMessage();
        removePath1Msg.setDestination(path1Msg.getDestination());
        removePath1Msg.setDataStructure(removePath1);
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo

        if (subs != null) {
            ConsumerInfo info = subs.getConsumerInfo();
            if (info != null) {
                subscriptionsByConsumerId.remove(info.getConsumerId());
            }
            RemoveInfo removeInfo = null;
            if (info != null) {
                removeInfo = info.createRemoveCommand();
            }
            sendToActiveMQ(removeInfo, null);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.