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 |
|---|---|
void |
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()
throws Throwable
init in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic void start()
throws Throwable
start in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic void stop()
throws Throwable
stop in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic void shutdown()
throws Throwable
shutdown in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic void committed(long txId,
int authorId)
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.