FabricActor 类

定义

Represents a actor that can have multiple reliable 'named' states associated with it. ActorBase

Remarks:The state is preserved across actor garbage collections and fail-overs. The storage and retrieval of the state is provided by the actor state provider ActorStateProvider.

public class FabricActor extends ActorBase
继承
java.lang.Object
FabricActor

继承成员

构造函数

FabricActor(FabricActorService actorService, ActorId actorId)

Initializes a new instance of FabricActor

方法

getStateManager()

Gets the state manager for FabricActor which can be used to get/add/update/remove named states.

saveStateAsync()

Saves all the state changes (add/update/remove) that were made since last call to saveStateAsync(), to the actor state provider associated with the actor.

stateManager()

Gets the state manager for FabricActor which can be used to get/add/update/remove named states.

适用于