예제 #1
0
 public KinesisFlowSettings WithBackoffStrategy(RetryBackoffStrategy backoffStrategy) => new KinesisFlowSettings(
     parallelism: this.Parallelism,
     maxBatchSize: this.MaxBatchSize,
     backoffStrategy: backoffStrategy,
     retryInitialTimeout: this.RetryInitialTimeout,
     maxRecordsPerSecond: this.MaxRecordsPerSecond,
     maxBytesPerSecond: this.MaxBytesPerSecond,
     maxRetries: this.MaxRetries);
예제 #2
0
 public KinesisFlowSettings(
     int parallelism,
     int maxBatchSize,
     RetryBackoffStrategy backoffStrategy,
     TimeSpan retryInitialTimeout,
     int maxRecordsPerSecond,
     int maxBytesPerSecond,
     int maxRetries)
 {
     Parallelism         = parallelism;
     MaxBatchSize        = maxBatchSize;
     BackoffStrategy     = backoffStrategy;
     MaxRecordsPerSecond = maxRecordsPerSecond;
     MaxBytesPerSecond   = maxBytesPerSecond;
     MaxRetries          = maxRetries;
     RetryInitialTimeout = retryInitialTimeout;
 }