次の方法で共有


MemoryGrainStorageWithLatency クラス

定義

これは、ストレージ 呼び出しの固定待機時間を示すストレージ プロバイダーの単純なメモリ内実装です。 このクラスは、システム テストとストレージ待機時間の影響の調査に役立ちます。

public class MemoryGrainStorageWithLatency : Orleans.Storage.IGrainStorage
type MemoryGrainStorageWithLatency = class
    interface IGrainStorage
Public Class MemoryGrainStorageWithLatency
Implements IGrainStorage
継承
MemoryGrainStorageWithLatency
実装

OrleansConfiguration.xml ファイル内のこのストレージ プロバイダーの構成例:

<OrleansConfiguration xmlns="urn:orleans">
  <Globals>
    <StorageProviders>
      <Provider Type="Orleans.Storage.MemoryStorageWithLatency" Name="MemoryStoreWithLatency" Latency="00:00:00.500"/>
  </StorageProviders>

注釈

このストレージ プロバイダーは、単純なメモリ内テスト シナリオのみを対象としています。 このクラスは運用環境では使用しないでください。[仕様] 回復性や長期的な永続化機能は提供されないためです。

コンストラクター

MemoryGrainStorageWithLatency(String, MemoryStorageWithLatencyOptions, ILoggerFactory, IGrainFactory)

既定のコンストラクターです。

MemoryGrainStorageWithLatency(String, MemoryStorageWithLatencyOptions, ILoggerFactory, IGrainFactory, IGrainStorageSerializer)

既定のコンストラクターです。

メソッド

ClearStateAsync(String, GrainReference, IGrainState)

このストレージ プロバイダーの状態データ関数を削除またはクリアします。

ClearStateAsync<T>(String, GrainId, IGrainState<T>)

このストレージ プロバイダーの状態データ関数を削除またはクリアします。

ReadStateAsync(String, GrainReference, IGrainState)

このストレージ プロバイダーの状態データの読み取り関数。

ReadStateAsync<T>(String, GrainId, IGrainState<T>)

このストレージ プロバイダーの状態データの読み取り関数。

WriteStateAsync(String, GrainReference, IGrainState)

このストレージ プロバイダーの状態データ関数を書き込みます。

WriteStateAsync<T>(String, GrainId, IGrainState<T>)

このストレージ プロバイダーの状態データ関数を書き込みます。

適用対象