StateProviderReplica.changeRoleAsync(ReplicaRole newRole, CancellationToken cancellationToken) 方法

定义

Notify the state provider replica that its role is changing, for example to Primary or Secondary.

public CompletableFuture<?> changeRoleAsync(ReplicaRole newRole, CancellationToken cancellationToken)

参数

newRole
ReplicaRole

The new replica role, such as primary or secondary.

cancellationToken
CancellationToken

CancellationToken object to indicate the cancellation status of the operation.

返回

CompletableFuture<?>

Task that represents the asynchronous change role operation.

适用于