public class TransactionPropagator extends Object implements org.neo4j.kernel.lifecycle.Lifecycle
HaSettings.tx_push_factor. Which slaves receives transactions is controlled by
HaSettings.tx_push_strategy.
An attempt is made to push each transaction to the wanted number of slaves, but if it isn't possible
and a timeout is hit, propagation will still be considered as successful and occurrence will be logged.| Modifier and Type | Class and Description |
|---|---|
static interface |
TransactionPropagator.Configuration |
| Constructor and Description |
|---|
TransactionPropagator(TransactionPropagator.Configuration config,
org.neo4j.logging.Log log,
Slaves slaves,
CommitPusher pusher) |
| Modifier and Type | Method and Description |
|---|---|
int |
committed(long txId,
int authorId) |
static TransactionPropagator.Configuration |
from(org.neo4j.kernel.configuration.Config config) |
static TransactionPropagator.Configuration |
from(org.neo4j.kernel.configuration.Config config,
SlavePriority slavePriority) |
void |
init() |
void |
shutdown() |
void |
start() |
void |
stop() |
public TransactionPropagator(TransactionPropagator.Configuration config, org.neo4j.logging.Log log, Slaves slaves, CommitPusher pusher)
public static TransactionPropagator.Configuration from(org.neo4j.kernel.configuration.Config config)
public static TransactionPropagator.Configuration from(org.neo4j.kernel.configuration.Config config, SlavePriority slavePriority)
public void init()
init in interface org.neo4j.kernel.lifecycle.Lifecyclepublic void start()
start in interface org.neo4j.kernel.lifecycle.Lifecyclepublic void stop()
stop in interface org.neo4j.kernel.lifecycle.Lifecyclepublic void shutdown()
shutdown in interface org.neo4j.kernel.lifecycle.Lifecyclepublic int committed(long txId,
int authorId)
txId - transaction id to replicateauthorId - author id for such transaction idCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.