ActorService Interface
public interface ActorService extends Service
Defines the interface containing methods which can be called at Actor Service level.
Method Summary
Modifier and Type | Method and Description |
---|---|
CompletableFuture<?> |
deleteActorAsync(ActorId actorId, CancellationToken cancellationToken)
Deletes an Actor from the Actor service. An active actor, will be deactivated and its state will also be deleted from state provider. An in-active actor's state will be deleted from state provider. If this method is called for a non-existent actor id in the system, it will be a no-op. |
CompletableFuture<Paged |
getActorsAsync(ContinuationToken continuationToken, CancellationToken cancellationToken)
Gets the list of Actors by querying the actor service. |
Method Details
deleteActorAsync
public CompletableFuture> deleteActorAsync(ActorId actorId, CancellationToken cancellationToken)
Deletes an Actor from the Actor service.
An active actor, will be deactivated and its state will also be deleted from state provider. An in-active actor's state will be deleted from state provider. If this method is called for a non-existent actor id in the system, it will be a no-op.
Parameters:
ActorId of the actor to be deleted.
CancellationToken object to indicate the cancellation status of the operation.
Returns:
getActorsAsync
public CompletableFuture<>
Gets the list of Actors by querying the actor service.
Parameters:
CancellationToken object to indicate the cancellation status of the operation.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for