IReliableStateManagerReplica2 Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines replica of a reliable state provider.
public interface IReliableStateManagerReplica2 : Microsoft.ServiceFabric.Data.IAsyncEnumerable<Microsoft.ServiceFabric.Data.IReliableState>, Microsoft.ServiceFabric.Data.IReliableStateManagerReplica, Microsoft.ServiceFabric.Data.IStateProviderReplica2
type IReliableStateManagerReplica2 = interface
interface IReliableStateManagerReplica
interface IStateProviderReplica
interface IReliableStateManager
interface IAsyncEnumerable<IReliableState>
interface IStateProviderReplica2
Public Interface IReliableStateManagerReplica2
Implements IAsyncEnumerable(Of IReliableState), IReliableStateManagerReplica, IStateProviderReplica2
- Derived
- Implements
Properties
OnDataLossAsync |
Function called during suspected data-loss. (Inherited from IStateProviderReplica) |
OnRestoreCompletedAsync |
Function called after restore has been performed on the replica. (Inherited from IStateProviderReplica2) |
Methods
Abort() |
Forcefully abort the state provider replica. (Inherited from IStateProviderReplica) |
BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>) |
Performs a backup of all reliable state managed by this IReliableStateManager. (Inherited from IStateProviderReplica) |
BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>) |
Performs a full backup of all reliable state managed by this IReliableStateManager. (Inherited from IStateProviderReplica) |
ChangeRoleAsync(ReplicaRole, CancellationToken) |
Notify the state provider replica that its role is changing, for example to Primary or Secondary. (Inherited from IStateProviderReplica) |
CloseAsync(CancellationToken) |
Gracefully close the state provider replica. (Inherited from IStateProviderReplica) |
CreateTransaction() |
Create and start a new transaction that can be used to group operations to be performed atomically. (Inherited from IReliableStateManager) |
GetAsyncEnumerator() |
Returns an IAsyncEnumerator<T> that asynchronously iterates through the collection. (Inherited from IAsyncEnumerable<T>) |
GetOrAddAsync<T>(ITransaction, String, TimeSpan) |
Gets an IReliableState of the given type |
GetOrAddAsync<T>(ITransaction, String) |
Gets an IReliableState of the given type |
GetOrAddAsync<T>(ITransaction, Uri, TimeSpan) |
Gets an IReliableState of the given type |
GetOrAddAsync<T>(ITransaction, Uri) |
Gets an IReliableState of the given type |
GetOrAddAsync<T>(String, TimeSpan) |
Gets an IReliableState of the given type |
GetOrAddAsync<T>(String) |
Gets an IReliableState of the given type |
GetOrAddAsync<T>(Uri, TimeSpan) |
Gets an IReliableState of the given type |
GetOrAddAsync<T>(Uri) |
Gets an IReliableState of the given type |
Initialize(StatefulServiceInitializationParameters) |
Initialize the state provider replica using the service initialization information. (Inherited from IStateProviderReplica) |
OpenAsync(ReplicaOpenMode, IStatefulServicePartition, CancellationToken) |
Open the state provider replica for use. (Inherited from IStateProviderReplica) |
RemoveAsync(ITransaction, String, TimeSpan) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas when the transaction is committed. (Inherited from IReliableStateManager) |
RemoveAsync(ITransaction, String) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas when the transaction is committed. (Inherited from IReliableStateManager) |
RemoveAsync(ITransaction, Uri, TimeSpan) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas when the transaction is committed. (Inherited from IReliableStateManager) |
RemoveAsync(ITransaction, Uri) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas when the transaction is committed. (Inherited from IReliableStateManager) |
RemoveAsync(String, TimeSpan) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas. (Inherited from IReliableStateManager) |
RemoveAsync(String) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas. (Inherited from IReliableStateManager) |
RemoveAsync(Uri, TimeSpan) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas. (Inherited from IReliableStateManager) |
RemoveAsync(Uri) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas. (Inherited from IReliableStateManager) |
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>>). (Inherited from IStateProviderReplica) |
RestoreAsync(String) |
Restore a backup taken by BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>) or BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>). (Inherited from IStateProviderReplica) |
TryAddStateSerializer<T>(IStateSerializer<T>) |
Registers a custom serializer for all reliable collections. (Inherited from IReliableStateManager) |
TryGetAsync<T>(String) |
Attempts to get an IReliableState of the given type |
TryGetAsync<T>(Uri) |
Attempts to get an IReliableState of the given type |
Events
StateManagerChanged |
Occurs when State Manager's state changes. For example, creation or delete of reliable state or rebuild of the reliable state manager. (Inherited from IReliableStateManager) |
TransactionChanged |
Occurs when a transaction's state changes. For example, commit of a transaction. (Inherited from IReliableStateManager) |