State Provider. save State Async(ActorId actorId, List<ActorStateChange> stateChanges, CancellationToken cancellationToken) 方法
Saves the specified set of actor state changes atomically.
Remarks: The collection of state changes should contain only one item for a given state name. The save operation will fail on trying to add an actor state which already exists or update/remove an actor state which does not exist.
public CompletableFuture<?> saveStateAsync(ActorId actorId, List<ActorStateChange> stateChanges, CancellationToken cancellationToken)
ID of the actor for which to save the state changes.
Collection of state changes to save.
CancellationToken object to indicate the cancellation status of the operation.
A task that represents the asynchronous save operation.