org.neo4j.kernel.ha
Class MasterTxIdGenerator

java.lang.Object
  extended by org.neo4j.kernel.ha.MasterTxIdGenerator
All Implemented Interfaces:
org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator

public class MasterTxIdGenerator
extends Object
implements org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator


Nested Class Summary
static class MasterTxIdGenerator.MasterTxIdGeneratorFactory
           
 
Field Summary
 
Fields inherited from interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator
DEFAULT
 
Constructor Summary
MasterTxIdGenerator(Broker broker)
           
 
Method Summary
 long generate(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource, int identifier)
           
 int getCurrentMasterId()
           
 int getMyId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterTxIdGenerator

public MasterTxIdGenerator(Broker broker)
Method Detail

generate

public long generate(org.neo4j.kernel.impl.transaction.xaframework.XaDataSource dataSource,
                     int identifier)
Specified by:
generate in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator

getCurrentMasterId

public int getCurrentMasterId()
Specified by:
getCurrentMasterId in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator

getMyId

public int getMyId()
Specified by:
getMyId in interface org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator


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