ActorStateManager.containsStateAsync Method

Definition

Overloads

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)

Parameters

stateName
String

Name of the actor state.

Returns

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)

Parameters

stateName
String

Name of the actor state.

cancellationToken
CancellationToken

CancellationToken object to indicate the cancellation status of the operation.

Returns

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.

Applies to