VolatileActorStateProvider.enumerateStateNamesAsync(ActorId actorId, CancellationToken cancellationToken) 方法
定义
Creates an enumerable of all the state names associated with specified actor.
Remarks:The enumerator returned from actor state provider is safe to use concurrently with reads and writes to the state provider. It represents a snapshot consistent view of the state provider.
public CompletableFuture<List<String>> enumerateStateNamesAsync(ActorId actorId, CancellationToken cancellationToken)
参数
- actorId
- ActorId
ID of the actor for which to create enumerable.
- cancellationToken
- CancellationToken
CancellationToken object to indicate the cancellation status of the operation.
返回
CompletableFuture<List<String>>
A task that represents the asynchronous enumeration operation. The value of TResult parameter is an enumerable of all state names associated with specified actor.
- 替代