IJournaledStateManager
interface
Namespace: Orleans.Journaling
Manages the states for a given grain.
public interface IJournaledStateManager : IAsyncDisposableProperties
PendingWriteByteCountGets an approximate count of bytes accumulated in the in-memory journal buffer that have not yet been flushed to storage. Returns a negative value when the implementation does not support sampling pending bytes.
Methods
DeleteStateAsync(CancellationToken)Resets this instance, removing any persistent state.InitializeAsync(CancellationToken)Initializes the state manager.RegisterState(string, IJournaledState)Registers a state with the manager.TryGetState(string, IJournaledState?)Attempts to get a state registered with the manager.WriteStateAsync(CancellationToken)Prepares and persists an update to the journal.
