public KeyValueStoreWrapper(string storeName, LocalStoreSettings storeSettings, ReplicatorSettings replicatorSettings, KeyValueStoreReplicaSettings kvsReplicaSettings, Action <KeyValueStoreEnumerator> copyHandler, Action <IEnumerator <KeyValueStoreNotification> > replicationHandler, Func <CancellationToken, Task <bool> > onDataLossCallback) : base(storeName, storeSettings, replicatorSettings, kvsReplicaSettings) { this.copyHandler = copyHandler; this.replicationHandler = replicationHandler; this.onDataLossCallback = onDataLossCallback; }
internal KeyValueStateProvider(ReplicatorSettings replicatorSettings, LocalStoreSettings localStoreSettings, bool enableIncrementalBackup, int?logTruncationIntervalInMinutes) { userDefinedReplicatorSettings = replicatorSettings; userDefinedLocalStoreSettings = localStoreSettings; userDefinedEnableIncrementalBackup = enableIncrementalBackup; userDefinedLogTruncationInterval = logTruncationIntervalInMinutes; replicaRole = ReplicaRole.Unknown; restoreSettings = new RestoreSettings(true); isBackupInProgress = 0; backupCallbackLock = new SemaphoreSlim(1); backupCallbackCts = null; backupCallbackTask = null; isClosingOrAborting = false; }
/// <summary> /// Creates an instance of <see cref="T:Microsoft.ServiceFabric.Actors.Runtime.KvsActorStateProvider" /> with specified /// replicator and local key-value store settings. /// </summary> /// <param name="replicatorSettings"> /// A <see cref="T:System.Fabric.ReplicatorSettings" /> that describes replicator settings. /// </param> /// <param name="localStoreSettings"> /// A <see cref="T:System.Fabric.LocalStoreSettings" /> that describes local key value store settings. /// </param> public KeyValueStateProvider(ReplicatorSettings replicatorSettings = null, LocalStoreSettings localStoreSettings = null) : this(replicatorSettings, localStoreSettings, false, new int?()) { }