Examples of KahaRemoveMessageCommand


Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            store(command, isEnableJournalDiskSyncs() && message.isResponseRequired(), null, null);
           
        }

        public void removeMessage(ConnectionContext context, MessageAck ack) throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setMessageId(ack.getLastMessageId().toString());
            command.setTransactionInfo(createTransactionInfo(ack.getTransactionId()));

            org.apache.activemq.util.ByteSequence packet = wireFormat.marshal(ack);
            command.setAck(new Buffer(packet.getData(), packet.getOffset(), packet.getLength()));
            store(command, isEnableJournalDiskSyncs() && ack.isResponseRequired(), null, null);
        }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            }
        }

        protected void doAcknowledge(ConnectionContext context, String subscriptionKey, MessageId messageId, MessageAck ack)
                throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setSubscriptionKey(subscriptionKey);
            command.setMessageId(messageId.toString());
            if (ack != null && ack.isUnmatchedAck()) {
                command.setAck(UNMATCHED);
            }
            store(command, false, null, null);
        }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            store(command, isEnableJournalDiskSyncs() && message.isResponseRequired(), null, null);

        }

        public void removeMessage(ConnectionContext context, MessageAck ack) throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setMessageId(ack.getLastMessageId().toString());
            command.setTransactionInfo(transactionIdTransformer.transform(ack.getTransactionId()));

            org.apache.activemq.util.ByteSequence packet = wireFormat.marshal(ack);
            command.setAck(new Buffer(packet.getData(), packet.getOffset(), packet.getLength()));
            store(command, isEnableJournalDiskSyncs() && ack.isResponseRequired(), null, null);
        }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            }
        }

        protected void doAcknowledge(ConnectionContext context, String subscriptionKey, MessageId messageId, MessageAck ack)
                throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setSubscriptionKey(subscriptionKey);
            command.setMessageId(messageId.toString());
            command.setTransactionInfo(transactionIdTransformer.transform(ack.getTransactionId()));
            if (ack != null && ack.isUnmatchedAck()) {
                command.setAck(UNMATCHED);
            }
            store(command, false, null, null);
        }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            }
        }

        protected void doAcknowledge(ConnectionContext context, String subscriptionKey, MessageId messageId, MessageAck ack)
                throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setSubscriptionKey(subscriptionKey);
            command.setMessageId(messageId.toString());
            command.setTransactionInfo(createTransactionInfo(ack.getTransactionId()));
            if (ack != null && ack.isUnmatchedAck()) {
                command.setAck(UNMATCHED);
            }
            store(command, false, null, null);
        }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            command.setMessageId(message.getMessageId().toString());
            processAdd(command, message.getTransactionId(), wireFormat.marshal(message));
        }
       
        public void removeMessage(ConnectionContext context, MessageAck ack) throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setMessageId(ack.getLastMessageId().toString());
            processRemove(command, ack.getTransactionId());
        }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            super(destination);
        }
       
        public void acknowledge(ConnectionContext context, String clientId, String subscriptionName,
                                MessageId messageId, MessageAck ack) throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setSubscriptionKey(subscriptionKey(clientId, subscriptionName));
            command.setMessageId(messageId.toString());
            // We are not passed a transaction info.. so we can't participate in a transaction.
            // Looks like a design issue with the TopicMessageStore interface.  Also we can't recover the original ack
            // to pass back to the XA recover method.
            // command.setTransactionInfo();
            processRemove(command, null);
View Full Code Here

Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            store(command, isEnableJournalDiskSyncs() && message.isResponseRequired(), null, null);
           
        }

        public void removeMessage(ConnectionContext context, MessageAck ack) throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setMessageId(ack.getLastMessageId().toString());
            command.setTransactionInfo(createTransactionInfo(ack.getTransactionId()));

            org.apache.activemq.util.ByteSequence packet = wireFormat.marshal(ack);
            command.setAck(new Buffer(packet.getData(), packet.getOffset(), packet.getLength()));
            store(command, isEnableJournalDiskSyncs() && ack.isResponseRequired(), null, null);
        }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            store(command, isEnableJournalDiskSyncs() && message.isResponseRequired(), null, null);
           
        }

        public void removeMessage(ConnectionContext context, MessageAck ack) throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setMessageId(ack.getLastMessageId().toString());
            command.setTransactionInfo(createTransactionInfo(ack.getTransactionId()));

            org.apache.activemq.util.ByteSequence packet = wireFormat.marshal(ack);
            command.setAck(new Buffer(packet.getData(), packet.getOffset(), packet.getLength()));
            store(command, isEnableJournalDiskSyncs() && ack.isResponseRequired(), null, null);
        }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.data.KahaRemoveMessageCommand

            }
        }

        protected void doAcknowledge(ConnectionContext context, String subscriptionKey, MessageId messageId)
                throws IOException {
            KahaRemoveMessageCommand command = new KahaRemoveMessageCommand();
            command.setDestination(dest);
            command.setSubscriptionKey(subscriptionKey);
            command.setMessageId(messageId.toString());
            store(command, false, null, 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.