IReliableStateManager 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.
Manages all IReliableState for a service replica. Each replica in a service has its own state manager and thus its own set of IReliableState.
public interface IReliableStateManager : Microsoft.ServiceFabric.Data.IAsyncEnumerable<Microsoft.ServiceFabric.Data.IReliableState>
type IReliableStateManager = interface
interface IAsyncEnumerable<IReliableState>
Public Interface IReliableStateManager
Implements IAsyncEnumerable(Of IReliableState)
- Derived
- Implements
Methods
CreateTransaction() |
Create and start a new transaction that can be used to group operations to be performed atomically. |
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 |
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. |
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. |
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. |
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. |
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. |
RemoveAsync(String) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas. |
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. |
RemoveAsync(Uri) |
Removes the IReliableState with the given name from this state manager. The state is permanently removed from persistent storage and all replicas. |
TryAddStateSerializer<T>(IStateSerializer<T>) |
Registers a custom serializer for all reliable collections. |
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. |
TransactionChanged |
Occurs when a transaction's state changes. For example, commit of a transaction. |