org.neo4j.kernel.impl.transaction.xaframework
Class XaTransactionFactory

java.lang.Object
  extended by org.neo4j.kernel.impl.transaction.xaframework.XaTransactionFactory

public abstract class XaTransactionFactory
extends Object

Factory for creating XaTransactions used during recovery.


Constructor Summary
XaTransactionFactory()
           
 
Method Summary
abstract  XaTransaction create(int identifier)
          Create a XaTransaction with identifier as internal transaction id.
abstract  void flushAll()
           
abstract  long getAndSetNewVersion()
           
abstract  long getCurrentVersion()
           
abstract  long getLastCommittedTx()
           
protected  XaLogicalLog getLogicalLog()
           
 void recoveryComplete()
          This method will be called when all recovered transactions have been resolved to a safe state (rolledback or committed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XaTransactionFactory

public XaTransactionFactory()
Method Detail

create

public abstract XaTransaction create(int identifier)
Create a XaTransaction with identifier as internal transaction id.

Parameters:
identifier - The identifier of the transaction
Returns:
A new xa transaction

flushAll

public abstract void flushAll()

getLogicalLog

protected XaLogicalLog getLogicalLog()

recoveryComplete

public void recoveryComplete()
This method will be called when all recovered transactions have been resolved to a safe state (rolledback or committed). This implementation does nothing so override if you need to do something when recovery is complete.


getCurrentVersion

public abstract long getCurrentVersion()

getAndSetNewVersion

public abstract long getAndSetNewVersion()

getLastCommittedTx

public abstract long getLastCommittedTx()


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.