Updating the config to set the cache type.
This commit is contained in:
parent
1deae5cd07
commit
b5d5618a94
1 changed files with 7 additions and 1 deletions
|
|
@ -1290,7 +1290,13 @@ public class KinesisClientLibConfiguration {
|
||||||
}
|
}
|
||||||
|
|
||||||
public KinesisClientLibConfiguration withDataFetchingStrategy(String dataFetchingStrategy) {
|
public KinesisClientLibConfiguration withDataFetchingStrategy(String dataFetchingStrategy) {
|
||||||
recordsFetcherFactory.setDataFetchingStrategy(DataFetchingStrategy.valueOf(dataFetchingStrategy));
|
switch (dataFetchingStrategy.toUpperCase()) {
|
||||||
|
case "PREFETCH_CACHED":
|
||||||
|
recordsFetcherFactory.setDataFetchingStrategy(DataFetchingStrategy.PREFETCH_CACHED);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
recordsFetcherFactory.setDataFetchingStrategy(DataFetchingStrategy.DEFAULT);
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue