Collections Actor State Provider. change Role Async(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)
The new replica role, such as primary or secondary.
CancellationToken object to indicate the cancellation status of the operation.
Task that represents the asynchronous change role operation.