FabricReplicator.changeRoleAsync(Epoch epoch, ReplicaRole role, CancellationToken cancellationToken) 方法

定义

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

public CompletableFuture changeRoleAsync(Epoch epoch, ReplicaRole role, CancellationToken cancellationToken)

参数

epoch
Epoch

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

role
ReplicaRole

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

cancellationToken
CancellationToken

The CancellationToken object that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation might still be completed even if it is canceled.

返回

CompletableFuture

A future that represents the asynchronous operation. The future completes exceptionally with FabricException for fabric related failures.

替代

适用于