com.taobao.metamorphosis.server.transaction
接口 TransactionStore

所有超级接口:
Service
所有已知实现类:
JournalTransactionStore

public interface TransactionStore
extends Service

事务性存储引擎

作者:
boyan(boyan@taobao.com)

方法摘要
 void addMessage(MessageStore store, long msgId, PutCommand cmd, JournalLocation location)
           
 void commit(TransactionId txid, boolean wasPrepared)
           
 void prepare(TransactionId txid)
           
 void recover(TransactionRecoveryListener listener)
           
 void rollback(TransactionId txid)
           
 
从接口 com.taobao.metamorphosis.server.Service 继承的方法
dispose, init
 

方法详细信息

prepare

void prepare(TransactionId txid)
             throws IOException
抛出:
IOException

commit

void commit(TransactionId txid,
            boolean wasPrepared)
            throws IOException
抛出:
IOException

rollback

void rollback(TransactionId txid)
              throws IOException
抛出:
IOException

addMessage

void addMessage(MessageStore store,
                long msgId,
                PutCommand cmd,
                JournalLocation location)
                throws IOException
抛出:
IOException

recover

void recover(TransactionRecoveryListener listener)
             throws IOException
抛出:
IOException


Copyright © 2010–2013. All rights reserved.