IReliableStateManagerReplica IReliableStateManagerReplica IReliableStateManagerReplica Interface

Definition

Defines replica of a reliable state provider.

public interface IReliableStateManagerReplica : Microsoft.ServiceFabric.Data.IAsyncEnumerable<Microsoft.ServiceFabric.Data.IReliableState>, Microsoft.ServiceFabric.Data.IReliableStateManager, Microsoft.ServiceFabric.Data.IStateProviderReplica
type IReliableStateManagerReplica = interface
    interface IStateProviderReplica
    interface IReliableStateManager
    interface IAsyncEnumerable<IReliableState>
Public Interface IReliableStateManagerReplica
Implements IAsyncEnumerable(Of IReliableState), IReliableStateManager, IStateProviderReplica
Derived
Implements

Methods

Abort() Abort() Abort()

Forcefully abort the state provider replica.

(Inherited from IStateProviderReplica)

BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<>>) BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<>>) BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<>>)

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

(Inherited from IStateProviderReplica)

BackupAsync(Func<>>) BackupAsync(Func<>>) BackupAsync(Func<>>)

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

(Inherited from IStateProviderReplica)

ChangeRoleAsync(ReplicaRole, CancellationToken) ChangeRoleAsync(ReplicaRole, CancellationToken) ChangeRoleAsync(ReplicaRole, CancellationToken)

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

(Inherited from IStateProviderReplica)

CloseAsync(CancellationToken) CloseAsync(CancellationToken) CloseAsync(CancellationToken)

Gracefully close the state provider replica.

(Inherited from IStateProviderReplica)

CreateTransaction() CreateTransaction() CreateTransaction()

Create and start a new transaction that can be used to group operations to be performed atomically.

(Inherited from IReliableStateManager)

GetAsyncEnumerator() GetAsyncEnumerator() GetAsyncEnumerator()

Returns an IAsyncEnumerator<T> that asynchronously iterates through the collection.

(Inherited from IAsyncEnumerable<T>)

GetOrAddAsync(ITransaction, String) GetOrAddAsync(ITransaction, String) GetOrAddAsync(ITransaction, String)

Gets an IReliableState of the given type T and with the given name if it exists, or creates one and returns it if it doesn't already exist.

(Inherited from IReliableStateManager)

GetOrAddAsync(ITransaction, String, TimeSpan) GetOrAddAsync(ITransaction, String, TimeSpan) GetOrAddAsync(ITransaction, String, TimeSpan)

Gets an IReliableState of the given type T and with the given name if it exists, or creates one and returns it if it doesn't already exist.

(Inherited from IReliableStateManager)

GetOrAddAsync(ITransaction, Uri) GetOrAddAsync(ITransaction, Uri) GetOrAddAsync(ITransaction, Uri)

Gets an IReliableState of the given type T and with the given name if it exists, or creates one and returns it if it doesn't already exist.

(Inherited from IReliableStateManager)

GetOrAddAsync(ITransaction, Uri, TimeSpan) GetOrAddAsync(ITransaction, Uri, TimeSpan) GetOrAddAsync(ITransaction, Uri, TimeSpan)

Gets an IReliableState of the given type T and with the given name if it exists, or creates one and returns it if it doesn't already exist.

(Inherited from IReliableStateManager)

GetOrAddAsync(String) GetOrAddAsync(String) GetOrAddAsync(String)

Gets an IReliableState of the given type T and with the given name if it exists, or creates one and returns it if it doesn't already exist.

(Inherited from IReliableStateManager)

GetOrAddAsync(String, TimeSpan) GetOrAddAsync(String, TimeSpan) GetOrAddAsync(String, TimeSpan)

Gets an IReliableState of the given type T and with the given name if it exists, or creates one and returns it if it doesn't already exist.

(Inherited from IReliableStateManager)

GetOrAddAsync(Uri) GetOrAddAsync(Uri) GetOrAddAsync(Uri)

Gets an IReliableState of the given type T and with the given name if it exists, or creates one and returns it if it doesn't already exist.

(Inherited from IReliableStateManager)

GetOrAddAsync(Uri, TimeSpan) GetOrAddAsync(Uri, TimeSpan) GetOrAddAsync(Uri, TimeSpan)

Gets an IReliableState of the given type T and with the given name if it exists, or creates one and returns it if it doesn't already exist.

(Inherited from IReliableStateManager)

Initialize(StatefulServiceInitializationParameters) Initialize(StatefulServiceInitializationParameters) Initialize(StatefulServiceInitializationParameters)

Initialize the state provider replica using the service initialization information.

(Inherited from IStateProviderReplica)

OpenAsync(ReplicaOpenMode, IStatefulServicePartition, CancellationToken) OpenAsync(ReplicaOpenMode, IStatefulServicePartition, CancellationToken) OpenAsync(ReplicaOpenMode, IStatefulServicePartition, CancellationToken)

Open the state provider replica for use.

(Inherited from IStateProviderReplica)

RemoveAsync(ITransaction, String) RemoveAsync(ITransaction, String) 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, String, TimeSpan) RemoveAsync(ITransaction, String, TimeSpan) 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, Uri) RemoveAsync(ITransaction, Uri) 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(ITransaction, Uri, TimeSpan) RemoveAsync(ITransaction, Uri, TimeSpan) 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(String) RemoveAsync(String) 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(String, TimeSpan) RemoveAsync(String, TimeSpan) 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(Uri) RemoveAsync(Uri) 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)

RemoveAsync(Uri, TimeSpan) RemoveAsync(Uri, TimeSpan) 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)

RestoreAsync(String, RestorePolicy, CancellationToken) RestoreAsync(String, RestorePolicy, CancellationToken) RestoreAsync(String, RestorePolicy, CancellationToken)

TryAddStateSerializer(IStateSerializer) TryAddStateSerializer(IStateSerializer) TryAddStateSerializer(IStateSerializer)

Registers a custom serializer for all reliable collections.

(Inherited from IReliableStateManager)

TryGetAsync(String) TryGetAsync(String) TryGetAsync(String)

Attempts to get an IReliableState of the given type T and with the given name.

(Inherited from IReliableStateManager)

TryGetAsync(Uri) TryGetAsync(Uri) TryGetAsync(Uri)

Attempts to get an IReliableState of the given type T and with the given name.

(Inherited from IReliableStateManager)

Events

StateManagerChanged StateManagerChanged 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 TransactionChanged TransactionChanged

Occurs when a transaction's state changes. For example, commit of a transaction.

(Inherited from IReliableStateManager)

Properties

OnDataLossAsync OnDataLossAsync OnDataLossAsync

Function called during suspected data-loss.

(Inherited from IStateProviderReplica)

Applies to