Package com.taobao.metamorphosis.server.transaction

Examples of com.taobao.metamorphosis.server.transaction.TransactionRecoveryListener


        for (final PutCommand cmd : commands) {
            assertTrue(cmd.equals(cmd1) || cmd.equals(cmd2));
        }

        // recover
        this.transactionStore.recover(new TransactionRecoveryListener() {

            @Override
            public void recover(final XATransactionId id, final PutCommand[] addedMessages) {
                assertEquals(xid, id);
                assertArrayEquals(commands, addedMessages);
View Full Code Here


    void recoverPreparedTransactions() {
        try {
            final SessionContextImpl context = new SessionContextImpl(null, null);
            context.setInRecoverMode(true);
            this.recoverHeuristicTransactions();
            this.transactionStore.recover(new TransactionRecoveryListener() {

                @Override
                public void recover(final XATransactionId xid, final PutCommand[] putCmds) {
                    try {
                        TransactionalCommandProcessor.this.beginTransaction(context, xid, 0);
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.server.transaction.TransactionRecoveryListener

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.