StateReplicator Interface
public interface StateReplicator
Exposes replication related functions of the FabricReplicator class that are used by StateProvider to replicate state to ensure high availability.
Method Summary
Modifier and Type | Method and Description |
---|---|
Operation |
getCopyStream()
Gets copy stream |
Operation |
getReplicationStream()
Gets replication stream. |
CompletableFuture<Sequence |
replicateAsync(OperationData operationData, SequenceNumber sequenceNumber, CancellationToken cancellationToken)
Replicates state changes from Primary replica to the Secondary replicas and receives a quorum acknowledgement that those state changes have been applied. |
void |
updateReplicatorSettings(ReplicatorSettings settings)
Enables modification of replicator settings during runtime. The only setting which can be modified is the security credentials. |
Method Details
getCopyStream
public OperationStream getCopyStream()
Gets copy stream
Returns:
getReplicationStream
public OperationStream getReplicationStream()
Gets replication stream.
Returns:
replicateAsync
public CompletableFuture
Replicates state changes from Primary replica to the Secondary replicas and receives a quorum acknowledgement that those state changes have been applied.
Parameters:
Returns:
updateReplicatorSettings
public void updateReplicatorSettings(ReplicatorSettings settings)
Enables modification of replicator settings during runtime. The only setting which can be modified is the security credentials.
Parameters:
Applies to
Azure SDK for Java