Package org.apache.qpid.server.txn

Examples of org.apache.qpid.server.txn.AutoCommitTransaction


        }
    }

    private void forceDequeue(final QueueEntry entry, final boolean restoreCredit)
    {
        AutoCommitTransaction dequeueTxn = new AutoCommitTransaction(getQueue().getVirtualHost().getMessageStore());
        dequeueTxn.dequeue(entry.getQueue(), entry.getMessage(),
                           new ServerTransaction.Action()
                           {
                               public void postCommit()
                               {
                                   if (restoreCredit)
View Full Code Here


        return count;
    }

    private void dequeueEntry(final QueueEntry node)
    {
        ServerTransaction txn = new AutoCommitTransaction(getVirtualHost().getMessageStore());
        dequeueEntry(node, txn);
    }
View Full Code Here

    public Session_1_0(VirtualHost vhost, IApplicationRegistry appRegistry, final Connection_1_0 connection)
    {
        _appRegistry = appRegistry;
        _vhost = vhost;
        _transaction = new AutoCommitTransaction(vhost.getMessageStore());
        _connection = connection;

    }
View Full Code Here

        _key = key;
        _tag = tag;
        _excludes = excludes;
        _qmfId = durable ? brokerLink.getConfigStore().createPersistentId() : brokerLink.getConfigStore().createId();

        _transaction = new AutoCommitTransaction(getVirtualHost().getMessageStore());

        if(durable)
        {
            try
            {
View Full Code Here

        _key = arguments.get(KEY);
        _tag = arguments.get(TAG);
        _excludes = arguments.get(EXCLUDES);

        //TODO.
        _transaction = new AutoCommitTransaction(getVirtualHost().getMessageStore());


        if(_durable)
        {
            try
View Full Code Here

            // The send may of course still fail, in which case, as
            // the message is unacked, it will be lost.
            if(_txn == null)
            {
                _txn = new AutoCommitTransaction(getQueue().getVirtualHost().getMessageStore());
            }
            _txn.dequeue(getQueue(), entry.getMessage(), NOOP);

            entry.dequeue();
View Full Code Here

        }
    }

    private void forceDequeue(final QueueEntry entry, final boolean restoreCredit)
    {
        AutoCommitTransaction dequeueTxn = new AutoCommitTransaction(getQueue().getVirtualHost().getMessageStore());
        dequeueTxn.dequeue(entry.getQueue(), entry.getMessage(),
                           new ServerTransaction.Action()
                           {
                               public void postCommit()
                               {
                                   if (restoreCredit)
View Full Code Here

    }


    private void dequeueEntry(final QueueEntry node)
    {
        ServerTransaction txn = new AutoCommitTransaction(_transactionLog);
        dequeueEntry(node, txn);
    }
View Full Code Here

        return count;
    }

    private void dequeueEntry(final QueueEntry node)
    {
        ServerTransaction txn = new AutoCommitTransaction(getVirtualHost().getMessageStore());
        dequeueEntry(node, txn);
    }
View Full Code Here

        }
    }

    private void forceDequeue(final QueueEntry entry, final boolean restoreCredit)
    {
        ServerTransaction txn = new AutoCommitTransaction(getQueue().getVirtualHost().getTransactionLog());
        txn.dequeue(entry.getQueue(),entry.getMessage(),
                                new ServerTransaction.Action()
                            {
                                public void postCommit()
                                {
                                    if(restoreCredit)
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.txn.AutoCommitTransaction

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.