Actor Service 类
Represents the base class for Microsoft Service Fabric based reliable actors service.
Remarks:Derive from this class to implement your own custom actor service if you want to override any service level behavior for your actors.
public class FabricActorService extends StatefulServiceBase implements ActorService
Creates Service Replica Listeners.
|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.
|getActorsAsync(ContinuationToken continuationToken, CancellationToken cancellationToken)||
Gets the list of Actors by querying the actor service.
Gets ActorTypeInformation for actor service.
Gets settings for the actor service.
Gets a ActorStateProvider that represents the state provider for the actor service.
|onChangeRoleAsync(ReplicaRole newRole, CancellationToken cancellationToken)|
|onOpenAsync(ReplicaOpenMode openMode, CancellationToken cancellationToken)||
This method is called as the final step of opening the service. Override this method to be notified that Open has completed for this replica's internal components.