다음을 통해 공유


ReliableCollectionsActorStateProvider Class

Definition

Provides an implementation of IActorStateProvider which uses IReliableStateManager to store and persist the actor state.

public sealed class ReliableCollectionsActorStateProvider : Microsoft.ServiceFabric.Actors.Runtime.IActorStateProvider, Microsoft.ServiceFabric.Data.IStateProviderReplica2
type ReliableCollectionsActorStateProvider = class
    interface IActorStateProvider
    interface IStateProviderReplica2
    interface IStateProviderReplica
    interface VolatileLogicalTimeManager.ISnapshotHandler
Public NotInheritable Class ReliableCollectionsActorStateProvider
Implements IActorStateProvider, IStateProviderReplica2
Inheritance
ReliableCollectionsActorStateProvider
Implements

Constructors

ReliableCollectionsActorStateProvider()

Initializes a new instance of the ReliableCollectionsActorStateProvider class. ReliableCollectionsActorStateProvider is currently in PREVIEW.

ReliableCollectionsActorStateProvider(ReliableStateManagerConfiguration, Int32, Int32)

Initializes a new instance of the ReliableCollectionsActorStateProvider class with specified configuration ReliableCollectionsActorStateProvider is currently in PREVIEW.

ReliableCollectionsActorStateProvider(ReliableStateManagerConfiguration)

Initializes a new instance of the ReliableCollectionsActorStateProvider class with specified configuration ReliableCollectionsActorStateProvider is currently in PREVIEW.

Explicit Interface Implementations

IActorStateProvider.ActorActivatedAsync(ActorId, CancellationToken)

Invoked as part of the activation process of the actor with the specified actor ID.

IActorStateProvider.ContainsStateAsync(ActorId, String, CancellationToken)

Checks whether actor state provider contains an actor state with specified state name for the specified actor ID.

IActorStateProvider.DeleteReminderAsync(ActorId, String, CancellationToken)

Deletes the actor reminder with the given reminder name if it exists

IActorStateProvider.DeleteRemindersAsync(IReadOnlyDictionary<ActorId,IReadOnlyCollection<String>>, CancellationToken)

Deletes the specified set of reminders.

IActorStateProvider.EnumerateStateNamesAsync(ActorId, CancellationToken)

Creates an enumerable of all the state names associated with specified actor ID.

IActorStateProvider.GetActorsAsync(Int32, ContinuationToken, CancellationToken)

Gets the requested number of ActorID's from the state provider.

IActorStateProvider.GetRemindersAsync(Int32, ActorId, ContinuationToken, CancellationToken)

Gets the list of reminders from the state provider

IActorStateProvider.Initialize(ActorTypeInformation)

Initializes the actor state provider with type information of the actor type associated with it.

IActorStateProvider.LoadRemindersAsync(CancellationToken)

Loads all the reminders contained in the actor state provider.

IActorStateProvider.LoadStateAsync<T>(ActorId, String, CancellationToken)

Loads the actor state associated with the specified state name for the specified actor ID.

IActorStateProvider.ReminderCallbackCompletedAsync(ActorId, IActorReminder, CancellationToken)

Invoked when a reminder fires and finishes executing its callback ReceiveReminderAsync(String, Byte[], TimeSpan, TimeSpan) successfully.

IActorStateProvider.RemoveActorAsync(ActorId, CancellationToken)

Removes all the existing states and reminders associated with specified actor ID atomically.

IActorStateProvider.SaveReminderAsync(ActorId, IActorReminder, CancellationToken)

Saves the specified actor ID reminder. If an actor reminder with given name does not exist, it adds the actor reminder otherwise existing actor reminder with same name is updated.

IActorStateProvider.SaveStateAsync(ActorId, IReadOnlyCollection<ActorStateChange>, CancellationToken)

Saves the specified set of actor state changes for the specified actor ID atomically.

IStateProviderReplica.Abort()

Forcefully abort the state provider replica.

IStateProviderReplica.BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>)

Performs a backup of all reliable state managed by this IReliableStateManager.

IStateProviderReplica.BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>)

Performs a full backup of all reliable state managed by this IReliableStateManager.

IStateProviderReplica.ChangeRoleAsync(ReplicaRole, CancellationToken)

Notify the state provider replica that its role is changing, for example to Primary or Secondary.

IStateProviderReplica.CloseAsync(CancellationToken)

Gracefully close the state provider replica.

IStateProviderReplica.Initialize(StatefulServiceInitializationParameters)

Initialize the state provider replica using the service initialization information.

IStateProviderReplica.OnDataLossAsync

Function called during suspected data-loss.

IStateProviderReplica.OpenAsync(ReplicaOpenMode, IStatefulServicePartition, CancellationToken)

Open the state provider replica for use.

IStateProviderReplica.RestoreAsync(String, RestorePolicy, CancellationToken)

Restore a backup taken by BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>) or BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>).

IStateProviderReplica.RestoreAsync(String)

Restore a backup taken by BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>) or BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>).

IStateProviderReplica2.OnRestoreCompletedAsync

Function called after restore has been performed on the replica.

Applies to