你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: