Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAMEL-21253 - Camel AWS Kinesis: KCL Consumers, make the ConfigsBuild… #15674

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public boolean configure(CamelContext camelContext, Object obj, String name, Obj
case "healthCheckProducerEnabled": target.setHealthCheckProducerEnabled(property(camelContext, boolean.class, value)); return true;
case "iteratortype":
case "iteratorType": getOrCreateConfiguration(target).setIteratorType(property(camelContext, software.amazon.awssdk.services.kinesis.model.ShardIteratorType.class, value)); return true;
case "kcldisablecloudwatchmetricsexport":
case "kclDisableCloudwatchMetricsExport": getOrCreateConfiguration(target).setKclDisableCloudwatchMetricsExport(property(camelContext, boolean.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "maxresultsperrequest":
Expand Down Expand Up @@ -127,6 +129,8 @@ public Class<?> getOptionType(String name, boolean ignoreCase) {
case "healthCheckProducerEnabled": return boolean.class;
case "iteratortype":
case "iteratorType": return software.amazon.awssdk.services.kinesis.model.ShardIteratorType.class;
case "kcldisablecloudwatchmetricsexport":
case "kclDisableCloudwatchMetricsExport": return boolean.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "maxresultsperrequest":
Expand Down Expand Up @@ -197,6 +201,8 @@ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
case "healthCheckProducerEnabled": return target.isHealthCheckProducerEnabled();
case "iteratortype":
case "iteratorType": return getOrCreateConfiguration(target).getIteratorType();
case "kcldisablecloudwatchmetricsexport":
case "kclDisableCloudwatchMetricsExport": return getOrCreateConfiguration(target).isKclDisableCloudwatchMetricsExport();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "maxresultsperrequest":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public boolean configure(CamelContext camelContext, Object obj, String name, Obj
case "initialDelay": target.setInitialDelay(property(camelContext, long.class, value)); return true;
case "iteratortype":
case "iteratorType": target.getConfiguration().setIteratorType(property(camelContext, software.amazon.awssdk.services.kinesis.model.ShardIteratorType.class, value)); return true;
case "kcldisablecloudwatchmetricsexport":
case "kclDisableCloudwatchMetricsExport": target.getConfiguration().setKclDisableCloudwatchMetricsExport(property(camelContext, boolean.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "maxresultsperrequest":
Expand Down Expand Up @@ -153,6 +155,8 @@ public Class<?> getOptionType(String name, boolean ignoreCase) {
case "initialDelay": return long.class;
case "iteratortype":
case "iteratorType": return software.amazon.awssdk.services.kinesis.model.ShardIteratorType.class;
case "kcldisablecloudwatchmetricsexport":
case "kclDisableCloudwatchMetricsExport": return boolean.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "maxresultsperrequest":
Expand Down Expand Up @@ -249,6 +253,8 @@ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
case "initialDelay": return target.getInitialDelay();
case "iteratortype":
case "iteratorType": return target.getConfiguration().getIteratorType();
case "kcldisablecloudwatchmetricsexport":
case "kclDisableCloudwatchMetricsExport": return target.getConfiguration().isKclDisableCloudwatchMetricsExport();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "maxresultsperrequest":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Kinesis2EndpointUriFactory extends org.apache.camel.support.compone
private static final Set<String> SECRET_PROPERTY_NAMES;
private static final Set<String> MULTI_VALUE_PREFIXES;
static {
Set<String> props = new HashSet<>(47);
Set<String> props = new HashSet<>(48);
props.add("accessKey");
props.add("amazonKinesisClient");
props.add("asyncClient");
Expand All @@ -40,6 +40,7 @@ public class Kinesis2EndpointUriFactory extends org.apache.camel.support.compone
props.add("greedy");
props.add("initialDelay");
props.add("iteratorType");
props.add("kclDisableCloudwatchMetricsExport");
props.add("lazyStartProducer");
props.add("maxResultsPerRequest");
props.add("overrideEndpoint");
Expand Down
Loading