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
- 继承
继承成员
ActorBase.ActorBase(FabricActorService actorService, ActorId actorId)
ActorBase.getActorService()
ActorBase.getApplicationName()
ActorBase.getDiagnosticsContext()
ActorBase.getId()
ActorBase.getReminder(String reminderName)
ActorBase.getServiceUri()
ActorBase.isDirty()
ActorBase.onActivateAsync()
ActorBase.onDeactivateAsync()
ActorBase.onPostActorMethodAsync(ActorMethodContext actorMethodContext)
ActorBase.onPreActorMethodAsync(ActorMethodContext actorMethodContext)
ActorBase.registerReminderAsync(String reminderName, byte[] state, Duration dueTime, Duration period)
ActorBase.registerTimer(Function<Object, CompletableFuture<?>> asyncCallback, Object state, Duration dueTime, Duration period)
ActorBase.registerTimer(Function<Object, CompletableFuture<?>> asyncCallback, String asyncCallbackFunctionName, Object state, Duration dueTime, Duration period)
ActorBase.setDirty(boolean isDirty)
ActorBase.setDummy(boolean isDummy)
ActorBase.unregisterReminderAsync(ActorReminder reminder)
ActorBase.unregisterTimer(ActorTimer timer)
构造函数
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.
|