public class RaftReplicator extends org.neo4j.kernel.lifecycle.LifecycleAdapter implements Replicator, org.neo4j.kernel.impl.util.Listener<MemberId>
| Constructor and Description |
|---|
RaftReplicator(LeaderLocator leaderLocator,
MemberId me,
Outbound<MemberId,RaftMessages.RaftMessage> outbound,
LocalSessionPool sessionPool,
ProgressTracker progressTracker,
RetryStrategy retryStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
receive(MemberId leader) |
Future<Object> |
replicate(ReplicatedContent command,
boolean trackResult)
Submit content for replication.
|
void |
shutdown() |
public RaftReplicator(LeaderLocator leaderLocator, MemberId me, Outbound<MemberId,RaftMessages.RaftMessage> outbound, LocalSessionPool sessionPool, ProgressTracker progressTracker, RetryStrategy retryStrategy)
public Future<Object> replicate(ReplicatedContent command, boolean trackResult) throws InterruptedException
Replicatorreplicate in interface Replicatorcommand - The content to replicated.trackResult - Whether to track the result for this operation.InterruptedExceptionpublic void receive(MemberId leader)
receive in interface org.neo4j.kernel.impl.util.Listener<MemberId>public void shutdown()
shutdown in interface org.neo4j.kernel.lifecycle.Lifecycleshutdown in class org.neo4j.kernel.lifecycle.LifecycleAdapterCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.