ActorStateProvider.containsStateAsync(ActorId actorId, String stateName, CancellationToken cancellationToken) 方法

定义

Checks whether actor state provider contains an actor state with specified state name.

public CompletableFuture<Boolean> containsStateAsync(ActorId actorId, String stateName, CancellationToken cancellationToken)

参数

actorId
ActorId

ID of the actor for which to check state existence.

stateName
String

Name of the actor state to check for existence.

cancellationToken
CancellationToken

CancellationToken object to indicate the cancellation status of the operation.

返回

CompletableFuture<Boolean>

A task that represents the asynchronous check operation. The value of TResult parameter is true if state with specified name exists otherwise false.

适用于