ActorStateManager.containsStateAsync 方法

定义

重载

containsStateAsync(String stateName)

Checks if an actor state with specified name exists.

containsStateAsync(String stateName, CancellationToken cancellationToken)

Checks if an actor state with specified name exists.

containsStateAsync(String stateName)

Checks if an actor state with specified name exists.

public CompletableFuture<Boolean> containsStateAsync(String stateName)

参数

stateName
String

Name of the actor state.

返回

CompletableFuture<Boolean>

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

containsStateAsync(String stateName, CancellationToken cancellationToken)

Checks if an actor state with specified name exists.

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

参数

stateName
String

Name of the actor state.

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 T parameter is true if state with specified name exists otherwise false.

适用于