Package org.apache.qpid.server.store

Examples of org.apache.qpid.server.store.Transaction


                    _queueRecoveries.put(queueName, ++count);
                }
                else
                {
                    _logger.warn("Message id " + messageId + " referenced in log as enqueued in queue " + queueName + " is unknown, entry will be discarded");
                    Transaction txn = _store.newTransaction();
                    txn.dequeueMessage(queue, new DummyMessage(messageId));
                    txn.commitTranAsync();
                }
            }
            else
            {
                _logger.warn("Message id " + messageId + " in log references queue with id " + queueId + " which is not in the configuration, entry will be discarded");
                Transaction txn = _store.newTransaction();
                TransactionLogResource mockQueue =
                        new TransactionLogResource()
                        {
                            @Override
                            public String getName()
                            {
                                return "<<UNKNOWN>>";
                            }

                            @Override
                            public UUID getId()
                            {
                                return queueId;
                            }

                            @Override
                            public MessageDurability getMessageDurability()
                            {
                                return MessageDurability.DEFAULT;
                            }
                        };
                txn.dequeueMessage(mockQueue, new DummyMessage(messageId));
                txn.commitTranAsync();
            }
            return true;
        }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.store.Transaction

Copyright © 2018 www.massapicom. 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.