Skip to content

Commit

Permalink
switch to getNonNegativeDurationOrThrow for writeInterval in DefaultS…
Browse files Browse the repository at this point in the history
…treamConfig;

Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed Jul 6, 2021
1 parent 8b8a227 commit a8ef5bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class DefaultStreamConfig implements StreamConfig {

private DefaultStreamConfig(final ConfigWithFallback streamScopedConfig) {
maxArraySize = streamScopedConfig.getNonNegativeIntOrThrow(StreamConfigValue.MAX_ARRAY_SIZE);
writeInterval = streamScopedConfig.getNonNegativeAndNonZeroDurationOrThrow(StreamConfigValue.WRITE_INTERVAL);
writeInterval = streamScopedConfig.getNonNegativeDurationOrThrow(StreamConfigValue.WRITE_INTERVAL);
askTimeout = streamScopedConfig.getNonNegativeDurationOrThrow(StreamConfigValue.ASK_TIMEOUT);
retrievalConfig = DefaultStreamStageConfig.getInstance(streamScopedConfig, RETRIEVAL_CONFIG_PATH);
persistenceStreamConfig = DefaultPersistenceStreamConfig.of(streamScopedConfig);
Expand Down

0 comments on commit a8ef5bd

Please sign in to comment.