This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 9d2488b647f5 CAMEL-27601: camel-cassandraql - limit_n in any case, 
unknown codecs fail, consistencyLevel option (#30995)
9d2488b647f5 is described below

commit 9d2488b647f51c95ca4e4e9f184fa29bd4277d3f
Author: allthingssecurity <[email protected]>
AuthorDate: Fri Nov 27 22:16:40 2026 +0530

    CAMEL-27601: camel-cassandraql - limit_n in any case, unknown codecs fail, 
consistencyLevel option (#30995)
    
    1. clusterName is stored but not read: createSessionBuilder() does not
       pass it to the driver, and the session builder of the Cassandra Java
       Driver 4.x has no cluster name setting. Up to Camel 3.4 the component
       used driver 3.x and passed it to Cluster.Builder.withClusterName(); it
       has had no effect since the move to driver 4.x in Camel 3.5. The option
       is deprecated (kept, so URIs and code that set it still work).
    
    2. resultSetConversionStrategy=limit_10 failed the endpoint (no type
       converter to ResultSetConversionStrategy), while all and one worked in
       lower case. CassandraComponent now matches the LIMIT_ prefix ignoring
       case, as ResultSetConversionStrategies.fromName() does.
    
    3. An unknown name in extraTypeCodecs (a typo such as BLOB_TO_ARAY) was
       skipped without a log, and the codec error came only when a row was read
       or written. createSessionBuilder() now throws an IllegalArgumentException
       that lists the possible names, so the endpoint fails to start. Names are
       still converted with the type converter as before, so every name accepted
       before is still accepted, and empty names (a trailing comma) are still
       skipped.
    
    4. consistencyLevel, which prepareStatement() sets on every prepared
       statement, had no @UriParam: it was missing from the configurer, the
       component JSON and the Endpoint DSL, and only worked through the
       reflection fallback of the property binding. It is now an advanced
       endpoint option, with a description of which statements it applies to.
       The getter keeps its ConsistencyLevel return type, so compiled code that
       calls it keeps working; the generated configurer does not need it.
    
    6. The CamelCqlQuery header has javaType Object, as the producer accepts a
       String or a SimpleStatement, and the description says so.
    
    7. resultSetConversionStrategy has defaultValue ALL, the value of the field.
    
    Not changed: 5 (CamelCqlResumeAction listed as a consumer header while it
    is the name of a ResumeAction bean). Removing its @Metadata would remove the
    generated cqlResumeAction() method of the Endpoint DSL header builder, which
    user code may call; the descriptions pull request for CAMEL-23832 (#30937)
    already describes it as not a message header but the bean name.
    
    Regenerated cql.json (component and catalog copy), the configurer, the URI
    factory and CassandraEndpointBuilderFactory. Upgrade guide entry for 4.24
    for points 1 and 3.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 .../org/apache/camel/catalog/components/cql.json   |  47 +++---
 .../cassandra/CassandraEndpointConfigurer.java     |   6 +
 .../cassandra/CassandraEndpointUriFactory.java     |   3 +-
 .../org/apache/camel/component/cassandra/cql.json  |  47 +++---
 .../component/cassandra/CassandraComponent.java    |   4 +-
 .../component/cassandra/CassandraConstants.java    |   2 +-
 .../component/cassandra/CassandraEndpoint.java     |  31 +++-
 .../cassandra/CassandraEndpointOptionsTest.java    | 101 +++++++++++++
 .../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc    |  10 ++
 .../dsl/CassandraEndpointBuilderFactory.java       | 167 +++++++++++++++++++--
 10 files changed, 349 insertions(+), 69 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cql.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cql.json
index fc59690e5475..7f89767230e3 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cql.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cql.json
@@ -29,7 +29,7 @@
     "autowiredEnabled": { "index": 2, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "CamelCqlQuery": { "index": 0, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The CQL statement that the producer executes instead of the cql 
option: a String, or a com.datastax.oss.driver.api.core.cql.SimpleStatement. An 
empty String uses the cql option. With prepareStatements, the statement is 
prepared for each message.", "constantName": [...]
+    "CamelCqlQuery": { "index": 0, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"Object", "deprecated": false, "autowired": false, "secret": false, 
"description": "The CQL statement that the producer executes instead of the cql 
option: a String, or a com.datastax.oss.driver.api.core.cql.SimpleStatement. An 
empty String uses the cql option. With prepareStatements, the statement is 
prepared for each message.", "constantName": [...]
     "CamelCqlResumeAction": { "index": 1, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Not a message header: the name of the 
org.apache.camel.resume.ResumeAction bean that the consumer looks up in the 
registry when it starts with a resume strategy whose adapter takes a resume 
action.", "constantName": "org.apache.camel.component.cassandra.Ca [...]
   },
   "bodyTypes": {
@@ -42,7 +42,7 @@
     "hosts": { "index": 1, "kind": "path", "displayName": "Hosts", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The host names or IP addresses of the Cassandra nodes that the 
driver contacts first, separated by commas. When neither the session option nor 
a bean is set, the endpoint creates a session from them and closes it when it 
stops." },
     "port": { "index": 2, "kind": "path", "displayName": "Port", "group": 
"common", "label": "", "required": false, "type": "integer", "javaType": 
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, 
"description": "The port of the CQL native protocol, the same for all the nodes 
in the hosts. If not set, 9042 is used." },
     "keyspace": { "index": 3, "kind": "path", "displayName": "Keyspace", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The keyspace of the session that the endpoint 
creates from the hosts, so that the CQL can name tables without their keyspace. 
It is not used with the session option or a bean." },
-    "clusterName": { "index": 4, "kind": "parameter", "displayName": "Cluster 
Name", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Not used: the component does not pass this 
value to the driver." },
+    "clusterName": { "index": 4, "kind": "parameter", "displayName": "Cluster 
Name", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": true, "deprecationNote": "The 
session builder of the Cassandra Java Driver 4.x has no cluster name setting", 
"autowired": false, "secret": false, "description": "Not used: the component 
does not pass this value to the driver. Deprecation note: The session builder 
of the Cassandra Java Driver [...]
     "cql": { "index": 5, "kind": "parameter", "displayName": "Cql", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The CQL statement that the consumer executes at each poll, and 
that the producer executes when the CamelCqlQuery header is not set. The 
producer binds the values of the ? or :name markers from the message body." },
     "datacenter": { "index": 6, "kind": "parameter", "displayName": 
"Datacenter", "group": "common", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "datacenter1", "description": "The name 
of the local datacenter, whose nodes the default load balancing policy of the 
driver sends the requests to. Used only for the session that the endpoint 
creates from the hosts." },
     "prepareStatements": { "index": 7, "kind": "parameter", "displayName": 
"Prepare Statements", "group": "common", "label": "", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": true, "description": "Whether to 
execute the CQL as a prepared statement. The cql option is prepared once when 
the consumer or producer starts, and a CQL from the CamelCqlQuery header is 
prepared for each message. If false, the  [...]
@@ -52,26 +52,27 @@
     "exchangePattern": { "index": 11, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
     "pollStrategy": { "index": 12, "kind": "parameter", "displayName": "Poll 
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, 
"autowired": false, "secret": false, "description": "A pluggable 
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your 
custom implementation to control error handling usually occurred during the po 
[...]
     "lazyStartProducer": { "index": 13, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produ [...]
-    "extraTypeCodecs": { "index": 14, "kind": "parameter", "displayName": 
"Extra Type Codecs", "group": "advanced", "label": "advanced", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The extra codecs of the 
driver (from its ExtraTypeCodecs class) to register, separated by commas: 
BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY, 
INT_LIST_TO_ARRAY, LONG_LIST_TO_ARR [...]
-    "loadBalancingPolicyClass": { "index": 15, "kind": "parameter", 
"displayName": "Load Balancing Policy Class", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The class of the load balancing policy of the driver (its 
basic.load-balancing-policy.class setting). A class name without a package, 
such as DcInferringLoadBalancingPolicy, is one of the polic [...]
-    "resultSetConversionStrategy": { "index": 16, "kind": "parameter", 
"displayName": "Result Set Conversion Strategy", "group": "advanced", "label": 
"advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.component.cassandra.ResultSetConversionStrategy", 
"deprecated": false, "autowired": false, "secret": false, "description": "How 
the rows of the result become the message body: ALL for a List of all the 
com.datastax.oss.driver.api.core.cql.Row objects (the default [...]
-    "session": { "index": 17, "kind": "parameter", "displayName": "Session", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "com.datastax.oss.driver.api.core.CqlSession", "deprecated": false, 
"autowired": false, "secret": false, "description": "To use a custom 
com.datastax.oss.driver.api.core.CqlSession. When set, the endpoint does not 
create a session from the hosts or look up a bean, and does not close this 
session. The options for creating a [...]
-    "backoffErrorThreshold": { "index": 18, "kind": "parameter", 
"displayName": "Backoff Error Threshold", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
number of subsequent error polls (failed due some error) that should happen 
before the backoffMultipler should kick-in." },
-    "backoffIdleThreshold": { "index": 19, "kind": "parameter", "displayName": 
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "description": "The number of subsequent 
idle polls that should happen before the backoffMultipler should kick-in." },
-    "backoffMultiplier": { "index": 20, "kind": "parameter", "displayName": 
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "description": "To let the scheduled 
polling consumer backoff if there has been a number of subsequent idles\/errors 
in a row. The multiplier is then the number of polls that will be skipped 
before the next actual attempt is h [...]
-    "delay": { "index": 21, "kind": "parameter", "displayName": "Delay", 
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type": 
"integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 500, "description": "Milliseconds before the 
next poll." },
-    "greedy": { "index": 22, "kind": "parameter", "displayName": "Greedy", 
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "If greedy is enabled, 
then the ScheduledPollConsumer will run immediately again, if the previous run 
polled 1 or more messages." },
-    "healthCheckMaxPollDuration": { "index": 23, "kind": "parameter", 
"displayName": "Health Check Max Poll Duration", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "duration", "javaType": 
"long", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "0", "description": "How long a poll may run before the health 
check of the consumer reports DOWN. The health check is otherwise based on the 
polls that are done, so it stays UP while a p [...]
-    "initialDelay": { "index": 24, "kind": "parameter", "displayName": 
"Initial Delay", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "long", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": 1000, "description": 
"Milliseconds before the first poll starts." },
-    "repeatCount": { "index": 25, "kind": "parameter", "displayName": "Repeat 
Count", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 0, "description": "Specifies a maximum limit 
of number of fires. So if you set it to 1, the scheduler will only fire once. 
If you set it to 5, it will only fire five times. A value of zero or negative 
means fire forever." },
-    "runLoggingLevel": { "index": 26, "kind": "parameter", "displayName": "Run 
Logging Level", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", 
"enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": "TRACE", 
"description": "The consumer logs a start\/complete log line when it polls. 
This option allows you to configure the log [...]
-    "scheduledExecutorService": { "index": 27, "kind": "parameter", 
"displayName": "Scheduled Executor Service", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "object", "javaType": 
"java.util.concurrent.ScheduledExecutorService", "deprecated": false, 
"autowired": false, "secret": false, "description": "Allows for configuring a 
custom\/shared thread pool to use for the consumer. By default each consumer 
has its own single threaded thread pool." },
-    "scheduler": { "index": 28, "kind": "parameter", "displayName": 
"Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": "none", "description": "To 
use a cron scheduler from either camel-spring or camel-quartz component. Use 
value spring or quartz for built in scheduler" },
-    "schedulerProperties": { "index": 29, "kind": "parameter", "displayName": 
"Scheduler Properties", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "object", "javaType": 
"java.util.Map<java.lang.String, java.lang.Object>", "prefix": "scheduler.", 
"multiValue": true, "deprecated": false, "autowired": false, "secret": false, 
"description": "To configure additional properties when using a custom 
scheduler or any of the Quartz, Spring based scheduler. This i [...]
-    "startScheduler": { "index": 30, "kind": "parameter", "displayName": 
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "boolean", "javaType": "boolean", "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Whether the scheduler should be auto started." },
-    "timeUnit": { "index": 31, "kind": "parameter", "displayName": "Time 
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ 
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", 
"DAYS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and 
delay options." },
-    "useFixedDelay": { "index": 32, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
-    "password": { "index": 33, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "description": "The password for plain 
text authentication with the Cassandra nodes. Used only together with the 
username option, and only for the session that the endpoint creates from the 
hosts." },
-    "username": { "index": 34, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "description": "The user name for plain 
text authentication with the Cassandra nodes. Used only together with the 
password option, and only for the session that the endpoint creates from the 
hosts." }
+    "consistencyLevel": { "index": 14, "kind": "parameter", "displayName": 
"Consistency Level", "group": "advanced", "label": "advanced", "required": 
false, "type": "enum", "javaType": 
"com.datastax.oss.driver.api.core.DefaultConsistencyLevel", "enum": [ "ANY", 
"ONE", "TWO", "THREE", "QUORUM", "ALL", "LOCAL_ONE", "LOCAL_QUORUM", 
"EACH_QUORUM", "SERIAL", "LOCAL_SERIAL" ], "deprecated": false, "autowired": 
false, "secret": false, "description": "The consistency level of the prepared 
statem [...]
+    "extraTypeCodecs": { "index": 15, "kind": "parameter", "displayName": 
"Extra Type Codecs", "group": "advanced", "label": "advanced", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The extra codecs of the 
driver (from its ExtraTypeCodecs class) to register, separated by commas: 
BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY, 
INT_LIST_TO_ARRAY, LONG_LIST_TO_ARR [...]
+    "loadBalancingPolicyClass": { "index": 16, "kind": "parameter", 
"displayName": "Load Balancing Policy Class", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The class of the load balancing policy of the driver (its 
basic.load-balancing-policy.class setting). A class name without a package, 
such as DcInferringLoadBalancingPolicy, is one of the polic [...]
+    "resultSetConversionStrategy": { "index": 17, "kind": "parameter", 
"displayName": "Result Set Conversion Strategy", "group": "advanced", "label": 
"advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.component.cassandra.ResultSetConversionStrategy", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
"ALL", "description": "How the rows of the result become the message body: ALL 
for a List of all the com.datastax.oss.driver.api.core.cql.R [...]
+    "session": { "index": 18, "kind": "parameter", "displayName": "Session", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "com.datastax.oss.driver.api.core.CqlSession", "deprecated": false, 
"autowired": false, "secret": false, "description": "To use a custom 
com.datastax.oss.driver.api.core.CqlSession. When set, the endpoint does not 
create a session from the hosts or look up a bean, and does not close this 
session. The options for creating a [...]
+    "backoffErrorThreshold": { "index": 19, "kind": "parameter", 
"displayName": "Backoff Error Threshold", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
number of subsequent error polls (failed due some error) that should happen 
before the backoffMultipler should kick-in." },
+    "backoffIdleThreshold": { "index": 20, "kind": "parameter", "displayName": 
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "description": "The number of subsequent 
idle polls that should happen before the backoffMultipler should kick-in." },
+    "backoffMultiplier": { "index": 21, "kind": "parameter", "displayName": 
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "description": "To let the scheduled 
polling consumer backoff if there has been a number of subsequent idles\/errors 
in a row. The multiplier is then the number of polls that will be skipped 
before the next actual attempt is h [...]
+    "delay": { "index": 22, "kind": "parameter", "displayName": "Delay", 
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type": 
"integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 500, "description": "Milliseconds before the 
next poll." },
+    "greedy": { "index": 23, "kind": "parameter", "displayName": "Greedy", 
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "If greedy is enabled, 
then the ScheduledPollConsumer will run immediately again, if the previous run 
polled 1 or more messages." },
+    "healthCheckMaxPollDuration": { "index": 24, "kind": "parameter", 
"displayName": "Health Check Max Poll Duration", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "duration", "javaType": 
"long", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "0", "description": "How long a poll may run before the health 
check of the consumer reports DOWN. The health check is otherwise based on the 
polls that are done, so it stays UP while a p [...]
+    "initialDelay": { "index": 25, "kind": "parameter", "displayName": 
"Initial Delay", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "long", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": 1000, "description": 
"Milliseconds before the first poll starts." },
+    "repeatCount": { "index": 26, "kind": "parameter", "displayName": "Repeat 
Count", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 0, "description": "Specifies a maximum limit 
of number of fires. So if you set it to 1, the scheduler will only fire once. 
If you set it to 5, it will only fire five times. A value of zero or negative 
means fire forever." },
+    "runLoggingLevel": { "index": 27, "kind": "parameter", "displayName": "Run 
Logging Level", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", 
"enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": "TRACE", 
"description": "The consumer logs a start\/complete log line when it polls. 
This option allows you to configure the log [...]
+    "scheduledExecutorService": { "index": 28, "kind": "parameter", 
"displayName": "Scheduled Executor Service", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "object", "javaType": 
"java.util.concurrent.ScheduledExecutorService", "deprecated": false, 
"autowired": false, "secret": false, "description": "Allows for configuring a 
custom\/shared thread pool to use for the consumer. By default each consumer 
has its own single threaded thread pool." },
+    "scheduler": { "index": 29, "kind": "parameter", "displayName": 
"Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": "none", "description": "To 
use a cron scheduler from either camel-spring or camel-quartz component. Use 
value spring or quartz for built in scheduler" },
+    "schedulerProperties": { "index": 30, "kind": "parameter", "displayName": 
"Scheduler Properties", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "object", "javaType": 
"java.util.Map<java.lang.String, java.lang.Object>", "prefix": "scheduler.", 
"multiValue": true, "deprecated": false, "autowired": false, "secret": false, 
"description": "To configure additional properties when using a custom 
scheduler or any of the Quartz, Spring based scheduler. This i [...]
+    "startScheduler": { "index": 31, "kind": "parameter", "displayName": 
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "boolean", "javaType": "boolean", "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Whether the scheduler should be auto started." },
+    "timeUnit": { "index": 32, "kind": "parameter", "displayName": "Time 
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ 
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", 
"DAYS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and 
delay options." },
+    "useFixedDelay": { "index": 33, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
+    "password": { "index": 34, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "description": "The password for plain 
text authentication with the Cassandra nodes. Used only together with the 
username option, and only for the session that the endpoint creates from the 
hosts." },
+    "username": { "index": 35, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "description": "The user name for plain 
text authentication with the Cassandra nodes. Used only together with the 
password option, and only for the session that the endpoint creates from the 
hosts." }
   }
 }
diff --git 
a/components/camel-cassandraql/src/generated/java/org/apache/camel/component/cassandra/CassandraEndpointConfigurer.java
 
b/components/camel-cassandraql/src/generated/java/org/apache/camel/component/cassandra/CassandraEndpointConfigurer.java
index 577dd972e5bc..57821fb86124 100644
--- 
a/components/camel-cassandraql/src/generated/java/org/apache/camel/component/cassandra/CassandraEndpointConfigurer.java
+++ 
b/components/camel-cassandraql/src/generated/java/org/apache/camel/component/cassandra/CassandraEndpointConfigurer.java
@@ -34,6 +34,8 @@ public class CassandraEndpointConfigurer extends 
PropertyConfigurerSupport imple
         case "bridgeErrorHandler": 
target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); 
return true;
         case "clustername":
         case "clusterName": target.setClusterName(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "consistencylevel":
+        case "consistencyLevel": 
target.setConsistencyLevel(property(camelContext, 
com.datastax.oss.driver.api.core.DefaultConsistencyLevel.class, value)); return 
true;
         case "cql": target.setCql(property(camelContext, 
java.lang.String.class, value)); return true;
         case "datacenter": target.setDatacenter(property(camelContext, 
java.lang.String.class, value)); return true;
         case "delay": target.setDelay(property(camelContext, long.class, 
value)); return true;
@@ -95,6 +97,8 @@ public class CassandraEndpointConfigurer extends 
PropertyConfigurerSupport imple
         case "bridgeErrorHandler": return boolean.class;
         case "clustername":
         case "clusterName": return java.lang.String.class;
+        case "consistencylevel":
+        case "consistencyLevel": return 
com.datastax.oss.driver.api.core.DefaultConsistencyLevel.class;
         case "cql": return java.lang.String.class;
         case "datacenter": return java.lang.String.class;
         case "delay": return long.class;
@@ -157,6 +161,8 @@ public class CassandraEndpointConfigurer extends 
PropertyConfigurerSupport imple
         case "bridgeErrorHandler": return target.isBridgeErrorHandler();
         case "clustername":
         case "clusterName": return target.getClusterName();
+        case "consistencylevel":
+        case "consistencyLevel": return target.getConsistencyLevel();
         case "cql": return target.getCql();
         case "datacenter": return target.getDatacenter();
         case "delay": return target.getDelay();
diff --git 
a/components/camel-cassandraql/src/generated/java/org/apache/camel/component/cassandra/CassandraEndpointUriFactory.java
 
b/components/camel-cassandraql/src/generated/java/org/apache/camel/component/cassandra/CassandraEndpointUriFactory.java
index 63057a148fcb..dbc9dd014e13 100644
--- 
a/components/camel-cassandraql/src/generated/java/org/apache/camel/component/cassandra/CassandraEndpointUriFactory.java
+++ 
b/components/camel-cassandraql/src/generated/java/org/apache/camel/component/cassandra/CassandraEndpointUriFactory.java
@@ -24,13 +24,14 @@ public class CassandraEndpointUriFactory extends 
org.apache.camel.support.compon
     private static final Set<String> ENDPOINT_IDENTITY_PROPERTY_NAMES;
     private static final Map<String, String> MULTI_VALUE_PREFIXES;
     static {
-        Set<String> props = new HashSet<>(35);
+        Set<String> props = new HashSet<>(36);
         props.add("backoffErrorThreshold");
         props.add("backoffIdleThreshold");
         props.add("backoffMultiplier");
         props.add("beanRef");
         props.add("bridgeErrorHandler");
         props.add("clusterName");
+        props.add("consistencyLevel");
         props.add("cql");
         props.add("datacenter");
         props.add("delay");
diff --git 
a/components/camel-cassandraql/src/generated/resources/META-INF/org/apache/camel/component/cassandra/cql.json
 
b/components/camel-cassandraql/src/generated/resources/META-INF/org/apache/camel/component/cassandra/cql.json
index fc59690e5475..7f89767230e3 100644
--- 
a/components/camel-cassandraql/src/generated/resources/META-INF/org/apache/camel/component/cassandra/cql.json
+++ 
b/components/camel-cassandraql/src/generated/resources/META-INF/org/apache/camel/component/cassandra/cql.json
@@ -29,7 +29,7 @@
     "autowiredEnabled": { "index": 2, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "CamelCqlQuery": { "index": 0, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The CQL statement that the producer executes instead of the cql 
option: a String, or a com.datastax.oss.driver.api.core.cql.SimpleStatement. An 
empty String uses the cql option. With prepareStatements, the statement is 
prepared for each message.", "constantName": [...]
+    "CamelCqlQuery": { "index": 0, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"Object", "deprecated": false, "autowired": false, "secret": false, 
"description": "The CQL statement that the producer executes instead of the cql 
option: a String, or a com.datastax.oss.driver.api.core.cql.SimpleStatement. An 
empty String uses the cql option. With prepareStatements, the statement is 
prepared for each message.", "constantName": [...]
     "CamelCqlResumeAction": { "index": 1, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Not a message header: the name of the 
org.apache.camel.resume.ResumeAction bean that the consumer looks up in the 
registry when it starts with a resume strategy whose adapter takes a resume 
action.", "constantName": "org.apache.camel.component.cassandra.Ca [...]
   },
   "bodyTypes": {
@@ -42,7 +42,7 @@
     "hosts": { "index": 1, "kind": "path", "displayName": "Hosts", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The host names or IP addresses of the Cassandra nodes that the 
driver contacts first, separated by commas. When neither the session option nor 
a bean is set, the endpoint creates a session from them and closes it when it 
stops." },
     "port": { "index": 2, "kind": "path", "displayName": "Port", "group": 
"common", "label": "", "required": false, "type": "integer", "javaType": 
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, 
"description": "The port of the CQL native protocol, the same for all the nodes 
in the hosts. If not set, 9042 is used." },
     "keyspace": { "index": 3, "kind": "path", "displayName": "Keyspace", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The keyspace of the session that the endpoint 
creates from the hosts, so that the CQL can name tables without their keyspace. 
It is not used with the session option or a bean." },
-    "clusterName": { "index": 4, "kind": "parameter", "displayName": "Cluster 
Name", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Not used: the component does not pass this 
value to the driver." },
+    "clusterName": { "index": 4, "kind": "parameter", "displayName": "Cluster 
Name", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": true, "deprecationNote": "The 
session builder of the Cassandra Java Driver 4.x has no cluster name setting", 
"autowired": false, "secret": false, "description": "Not used: the component 
does not pass this value to the driver. Deprecation note: The session builder 
of the Cassandra Java Driver [...]
     "cql": { "index": 5, "kind": "parameter", "displayName": "Cql", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The CQL statement that the consumer executes at each poll, and 
that the producer executes when the CamelCqlQuery header is not set. The 
producer binds the values of the ? or :name markers from the message body." },
     "datacenter": { "index": 6, "kind": "parameter", "displayName": 
"Datacenter", "group": "common", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "datacenter1", "description": "The name 
of the local datacenter, whose nodes the default load balancing policy of the 
driver sends the requests to. Used only for the session that the endpoint 
creates from the hosts." },
     "prepareStatements": { "index": 7, "kind": "parameter", "displayName": 
"Prepare Statements", "group": "common", "label": "", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": true, "description": "Whether to 
execute the CQL as a prepared statement. The cql option is prepared once when 
the consumer or producer starts, and a CQL from the CamelCqlQuery header is 
prepared for each message. If false, the  [...]
@@ -52,26 +52,27 @@
     "exchangePattern": { "index": 11, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
     "pollStrategy": { "index": 12, "kind": "parameter", "displayName": "Poll 
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, 
"autowired": false, "secret": false, "description": "A pluggable 
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your 
custom implementation to control error handling usually occurred during the po 
[...]
     "lazyStartProducer": { "index": 13, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produ [...]
-    "extraTypeCodecs": { "index": 14, "kind": "parameter", "displayName": 
"Extra Type Codecs", "group": "advanced", "label": "advanced", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The extra codecs of the 
driver (from its ExtraTypeCodecs class) to register, separated by commas: 
BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY, 
INT_LIST_TO_ARRAY, LONG_LIST_TO_ARR [...]
-    "loadBalancingPolicyClass": { "index": 15, "kind": "parameter", 
"displayName": "Load Balancing Policy Class", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The class of the load balancing policy of the driver (its 
basic.load-balancing-policy.class setting). A class name without a package, 
such as DcInferringLoadBalancingPolicy, is one of the polic [...]
-    "resultSetConversionStrategy": { "index": 16, "kind": "parameter", 
"displayName": "Result Set Conversion Strategy", "group": "advanced", "label": 
"advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.component.cassandra.ResultSetConversionStrategy", 
"deprecated": false, "autowired": false, "secret": false, "description": "How 
the rows of the result become the message body: ALL for a List of all the 
com.datastax.oss.driver.api.core.cql.Row objects (the default [...]
-    "session": { "index": 17, "kind": "parameter", "displayName": "Session", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "com.datastax.oss.driver.api.core.CqlSession", "deprecated": false, 
"autowired": false, "secret": false, "description": "To use a custom 
com.datastax.oss.driver.api.core.CqlSession. When set, the endpoint does not 
create a session from the hosts or look up a bean, and does not close this 
session. The options for creating a [...]
-    "backoffErrorThreshold": { "index": 18, "kind": "parameter", 
"displayName": "Backoff Error Threshold", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
number of subsequent error polls (failed due some error) that should happen 
before the backoffMultipler should kick-in." },
-    "backoffIdleThreshold": { "index": 19, "kind": "parameter", "displayName": 
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "description": "The number of subsequent 
idle polls that should happen before the backoffMultipler should kick-in." },
-    "backoffMultiplier": { "index": 20, "kind": "parameter", "displayName": 
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "description": "To let the scheduled 
polling consumer backoff if there has been a number of subsequent idles\/errors 
in a row. The multiplier is then the number of polls that will be skipped 
before the next actual attempt is h [...]
-    "delay": { "index": 21, "kind": "parameter", "displayName": "Delay", 
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type": 
"integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 500, "description": "Milliseconds before the 
next poll." },
-    "greedy": { "index": 22, "kind": "parameter", "displayName": "Greedy", 
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "If greedy is enabled, 
then the ScheduledPollConsumer will run immediately again, if the previous run 
polled 1 or more messages." },
-    "healthCheckMaxPollDuration": { "index": 23, "kind": "parameter", 
"displayName": "Health Check Max Poll Duration", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "duration", "javaType": 
"long", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "0", "description": "How long a poll may run before the health 
check of the consumer reports DOWN. The health check is otherwise based on the 
polls that are done, so it stays UP while a p [...]
-    "initialDelay": { "index": 24, "kind": "parameter", "displayName": 
"Initial Delay", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "long", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": 1000, "description": 
"Milliseconds before the first poll starts." },
-    "repeatCount": { "index": 25, "kind": "parameter", "displayName": "Repeat 
Count", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 0, "description": "Specifies a maximum limit 
of number of fires. So if you set it to 1, the scheduler will only fire once. 
If you set it to 5, it will only fire five times. A value of zero or negative 
means fire forever." },
-    "runLoggingLevel": { "index": 26, "kind": "parameter", "displayName": "Run 
Logging Level", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", 
"enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": "TRACE", 
"description": "The consumer logs a start\/complete log line when it polls. 
This option allows you to configure the log [...]
-    "scheduledExecutorService": { "index": 27, "kind": "parameter", 
"displayName": "Scheduled Executor Service", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "object", "javaType": 
"java.util.concurrent.ScheduledExecutorService", "deprecated": false, 
"autowired": false, "secret": false, "description": "Allows for configuring a 
custom\/shared thread pool to use for the consumer. By default each consumer 
has its own single threaded thread pool." },
-    "scheduler": { "index": 28, "kind": "parameter", "displayName": 
"Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": "none", "description": "To 
use a cron scheduler from either camel-spring or camel-quartz component. Use 
value spring or quartz for built in scheduler" },
-    "schedulerProperties": { "index": 29, "kind": "parameter", "displayName": 
"Scheduler Properties", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "object", "javaType": 
"java.util.Map<java.lang.String, java.lang.Object>", "prefix": "scheduler.", 
"multiValue": true, "deprecated": false, "autowired": false, "secret": false, 
"description": "To configure additional properties when using a custom 
scheduler or any of the Quartz, Spring based scheduler. This i [...]
-    "startScheduler": { "index": 30, "kind": "parameter", "displayName": 
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "boolean", "javaType": "boolean", "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Whether the scheduler should be auto started." },
-    "timeUnit": { "index": 31, "kind": "parameter", "displayName": "Time 
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ 
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", 
"DAYS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and 
delay options." },
-    "useFixedDelay": { "index": 32, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
-    "password": { "index": 33, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "description": "The password for plain 
text authentication with the Cassandra nodes. Used only together with the 
username option, and only for the session that the endpoint creates from the 
hosts." },
-    "username": { "index": 34, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "description": "The user name for plain 
text authentication with the Cassandra nodes. Used only together with the 
password option, and only for the session that the endpoint creates from the 
hosts." }
+    "consistencyLevel": { "index": 14, "kind": "parameter", "displayName": 
"Consistency Level", "group": "advanced", "label": "advanced", "required": 
false, "type": "enum", "javaType": 
"com.datastax.oss.driver.api.core.DefaultConsistencyLevel", "enum": [ "ANY", 
"ONE", "TWO", "THREE", "QUORUM", "ALL", "LOCAL_ONE", "LOCAL_QUORUM", 
"EACH_QUORUM", "SERIAL", "LOCAL_SERIAL" ], "deprecated": false, "autowired": 
false, "secret": false, "description": "The consistency level of the prepared 
statem [...]
+    "extraTypeCodecs": { "index": 15, "kind": "parameter", "displayName": 
"Extra Type Codecs", "group": "advanced", "label": "advanced", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The extra codecs of the 
driver (from its ExtraTypeCodecs class) to register, separated by commas: 
BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY, 
INT_LIST_TO_ARRAY, LONG_LIST_TO_ARR [...]
+    "loadBalancingPolicyClass": { "index": 16, "kind": "parameter", 
"displayName": "Load Balancing Policy Class", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The class of the load balancing policy of the driver (its 
basic.load-balancing-policy.class setting). A class name without a package, 
such as DcInferringLoadBalancingPolicy, is one of the polic [...]
+    "resultSetConversionStrategy": { "index": 17, "kind": "parameter", 
"displayName": "Result Set Conversion Strategy", "group": "advanced", "label": 
"advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.component.cassandra.ResultSetConversionStrategy", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
"ALL", "description": "How the rows of the result become the message body: ALL 
for a List of all the com.datastax.oss.driver.api.core.cql.R [...]
+    "session": { "index": 18, "kind": "parameter", "displayName": "Session", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "com.datastax.oss.driver.api.core.CqlSession", "deprecated": false, 
"autowired": false, "secret": false, "description": "To use a custom 
com.datastax.oss.driver.api.core.CqlSession. When set, the endpoint does not 
create a session from the hosts or look up a bean, and does not close this 
session. The options for creating a [...]
+    "backoffErrorThreshold": { "index": 19, "kind": "parameter", 
"displayName": "Backoff Error Threshold", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
number of subsequent error polls (failed due some error) that should happen 
before the backoffMultipler should kick-in." },
+    "backoffIdleThreshold": { "index": 20, "kind": "parameter", "displayName": 
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "description": "The number of subsequent 
idle polls that should happen before the backoffMultipler should kick-in." },
+    "backoffMultiplier": { "index": 21, "kind": "parameter", "displayName": 
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "description": "To let the scheduled 
polling consumer backoff if there has been a number of subsequent idles\/errors 
in a row. The multiplier is then the number of polls that will be skipped 
before the next actual attempt is h [...]
+    "delay": { "index": 22, "kind": "parameter", "displayName": "Delay", 
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type": 
"integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 500, "description": "Milliseconds before the 
next poll." },
+    "greedy": { "index": 23, "kind": "parameter", "displayName": "Greedy", 
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "If greedy is enabled, 
then the ScheduledPollConsumer will run immediately again, if the previous run 
polled 1 or more messages." },
+    "healthCheckMaxPollDuration": { "index": 24, "kind": "parameter", 
"displayName": "Health Check Max Poll Duration", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "duration", "javaType": 
"long", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "0", "description": "How long a poll may run before the health 
check of the consumer reports DOWN. The health check is otherwise based on the 
polls that are done, so it stays UP while a p [...]
+    "initialDelay": { "index": 25, "kind": "parameter", "displayName": 
"Initial Delay", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "integer", "javaType": "long", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": 1000, "description": 
"Milliseconds before the first poll starts." },
+    "repeatCount": { "index": 26, "kind": "parameter", "displayName": "Repeat 
Count", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 0, "description": "Specifies a maximum limit 
of number of fires. So if you set it to 1, the scheduler will only fire once. 
If you set it to 5, it will only fire five times. A value of zero or negative 
means fire forever." },
+    "runLoggingLevel": { "index": 27, "kind": "parameter", "displayName": "Run 
Logging Level", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", 
"enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": "TRACE", 
"description": "The consumer logs a start\/complete log line when it polls. 
This option allows you to configure the log [...]
+    "scheduledExecutorService": { "index": 28, "kind": "parameter", 
"displayName": "Scheduled Executor Service", "group": "scheduler", "label": 
"consumer,scheduler", "required": false, "type": "object", "javaType": 
"java.util.concurrent.ScheduledExecutorService", "deprecated": false, 
"autowired": false, "secret": false, "description": "Allows for configuring a 
custom\/shared thread pool to use for the consumer. By default each consumer 
has its own single threaded thread pool." },
+    "scheduler": { "index": 29, "kind": "parameter", "displayName": 
"Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": "none", "description": "To 
use a cron scheduler from either camel-spring or camel-quartz component. Use 
value spring or quartz for built in scheduler" },
+    "schedulerProperties": { "index": 30, "kind": "parameter", "displayName": 
"Scheduler Properties", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "object", "javaType": 
"java.util.Map<java.lang.String, java.lang.Object>", "prefix": "scheduler.", 
"multiValue": true, "deprecated": false, "autowired": false, "secret": false, 
"description": "To configure additional properties when using a custom 
scheduler or any of the Quartz, Spring based scheduler. This i [...]
+    "startScheduler": { "index": 31, "kind": "parameter", "displayName": 
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "boolean", "javaType": "boolean", "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Whether the scheduler should be auto started." },
+    "timeUnit": { "index": 32, "kind": "parameter", "displayName": "Time 
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ 
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", 
"DAYS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and 
delay options." },
+    "useFixedDelay": { "index": 33, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
+    "password": { "index": 34, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "description": "The password for plain 
text authentication with the Cassandra nodes. Used only together with the 
username option, and only for the session that the endpoint creates from the 
hosts." },
+    "username": { "index": 35, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "description": "The user name for plain 
text authentication with the Cassandra nodes. Used only together with the 
password option, and only for the session that the endpoint creates from the 
hosts." }
   }
 }
diff --git 
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraComponent.java
 
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraComponent.java
index d6adf848afa9..a21ea317dac3 100644
--- 
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraComponent.java
+++ 
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraComponent.java
@@ -88,7 +88,9 @@ public class CassandraComponent extends DefaultComponent {
         Object strategy = parameters.get("resultSetConversionStrategy");
         if (strategy != null) {
             String text = CamelContextHelper.parseText(getCamelContext(), 
strategy.toString());
-            if (text.equalsIgnoreCase("ALL") || text.equalsIgnoreCase("ONE") 
|| text.startsWith("LIMIT_")) {
+            // the names are matched ignoring case, as 
ResultSetConversionStrategies.fromName does
+            if (text.equalsIgnoreCase("ALL") || text.equalsIgnoreCase("ONE")
+                    || text.regionMatches(true, 0, "LIMIT_", 0, 
"LIMIT_".length())) {
                 ResultSetConversionStrategy rs = 
ResultSetConversionStrategies.fromName(text);
                 endpoint.setResultSetConversionStrategy(rs);
                 parameters.remove("resultSetConversionStrategy");
diff --git 
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraConstants.java
 
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraConstants.java
index 4ca038f52200..7db28d3b675a 100644
--- 
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraConstants.java
+++ 
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraConstants.java
@@ -27,7 +27,7 @@ public final class CassandraConstants {
               description = "The CQL statement that the producer executes 
instead of the cql option: a String, or a"
                             + " 
com.datastax.oss.driver.api.core.cql.SimpleStatement. An empty String uses the 
cql option."
                             + " With prepareStatements, the statement is 
prepared for each message.",
-              javaType = "String")
+              javaType = "Object")
     public static final String CQL_QUERY = "CamelCqlQuery";
 
     @Metadata(label = "consumer",
diff --git 
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraEndpoint.java
 
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraEndpoint.java
index 40287c48c146..cf3c91458916 100644
--- 
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraEndpoint.java
+++ 
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraEndpoint.java
@@ -39,6 +39,7 @@ import org.apache.camel.spi.BodyType;
 import org.apache.camel.spi.BodyType.Carrier;
 import org.apache.camel.spi.BodyTypes;
 import org.apache.camel.spi.EndpointServiceLocation;
+import org.apache.camel.spi.Metadata;
 import org.apache.camel.spi.UriEndpoint;
 import org.apache.camel.spi.UriParam;
 import org.apache.camel.spi.UriPath;
@@ -109,6 +110,8 @@ public class CassandraEndpoint extends 
ScheduledPollEndpoint implements Endpoint
                             + " message. If false, the CQL is sent as a simple 
statement each time.")
     private boolean prepareStatements = true;
     @UriParam(description = "Not used: the component does not pass this value 
to the driver.")
+    @Metadata(deprecationNote = "The session builder of the Cassandra Java 
Driver 4.x has no cluster name setting")
+    @Deprecated
     private String clusterName;
     @UriParam(label = "security", security = "secret",
               description = "The user name for plain text authentication with 
the Cassandra nodes. Used only together with"
@@ -124,6 +127,11 @@ public class CassandraEndpoint extends 
ScheduledPollEndpoint implements Endpoint
                             + " options for creating a session, such as 
keyspace, datacenter, username and password, are not"
                             + " used.")
     private CqlSession session;
+    @UriParam(label = "advanced",
+              description = "The consistency level of the prepared statements: 
the cql option and a CQL String in the"
+                            + " CamelCqlQuery header, when prepareStatements 
is true. It is not used for a simple statement"
+                            + " (prepareStatements=false) or a SimpleStatement 
in the header. If not set, the driver uses"
+                            + " the consistency level of its configuration.")
     private DefaultConsistencyLevel consistencyLevel;
     @UriParam(label = "advanced",
               description = "The class of the load balancing policy of the 
driver (its basic.load-balancing-policy.class"
@@ -131,11 +139,12 @@ public class CassandraEndpoint extends 
ScheduledPollEndpoint implements Endpoint
                             + " the policies of the driver; if not set, the 
driver uses DefaultLoadBalancingPolicy. Used only"
                             + " for the session that the endpoint creates from 
the hosts.")
     private String loadBalancingPolicyClass;
-    @UriParam(label = "advanced",
+    @UriParam(label = "advanced", defaultValue = "ALL",
               description = "How the rows of the result become the message 
body: ALL for a List of all the"
                             + " com.datastax.oss.driver.api.core.cql.Row 
objects (the default), ONE for the first Row or"
-                            + " null, LIMIT_n, such as LIMIT_10, for a List of 
at most n rows. A custom"
-                            + " 
org.apache.camel.component.cassandra.ResultSetConversionStrategy can be set 
instead.")
+                            + " null, LIMIT_n, such as LIMIT_10, for a List of 
at most n rows. The names are matched"
+                            + " ignoring case. A custom 
org.apache.camel.component.cassandra.ResultSetConversionStrategy can"
+                            + " be set instead.")
     private ResultSetConversionStrategy resultSetConversionStrategy = 
ResultSetConversionStrategies.all();
     @UriParam(label = "advanced",
               description = "The extra codecs of the driver (from its 
ExtraTypeCodecs class) to register, separated by"
@@ -143,8 +152,8 @@ public class CassandraEndpoint extends 
ScheduledPollEndpoint implements Endpoint
                             + " INT_LIST_TO_ARRAY, LONG_LIST_TO_ARRAY, 
FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY,"
                             + " TIMESTAMP_UTC, TIMESTAMP_MILLIS_SYSTEM, 
TIMESTAMP_MILLIS_UTC, ZONED_TIMESTAMP_SYSTEM,"
                             + " ZONED_TIMESTAMP_UTC, 
ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM or"
-                            + " LOCAL_TIMESTAMP_UTC. An unknown name is 
ignored. Used only for the session that the endpoint"
-                            + " creates from the hosts.")
+                            + " LOCAL_TIMESTAMP_UTC. An unknown name fails the 
start of the endpoint. Used only for the session"
+                            + " that the endpoint creates from the hosts.")
     private String extraTypeCodecs;
 
     public CassandraEndpoint(String endpointUri, Component component) {
@@ -270,10 +279,16 @@ public class CassandraEndpoint extends 
ScheduledPollEndpoint implements Endpoint
 
             for (String codec : c) {
                 codec = codec.trim();
+                if (codec.isEmpty()) {
+                    continue;
+                }
                 CassandraExtraCodecs ec = 
getCamelContext().getTypeConverter().tryConvertTo(CassandraExtraCodecs.class, 
codec);
-                if (ec != null) {
-                    sessionBuilder.addTypeCodecs(ec.codec());
+                if (ec == null) {
+                    throw new IllegalArgumentException(
+                            "Unknown extra type codec " + codec + " in the 
extraTypeCodecs option. Possible values are: "
+                                                       + 
Arrays.toString(CassandraExtraCodecs.values()));
                 }
+                sessionBuilder.addTypeCodecs(ec.codec());
             }
         }
 
@@ -373,10 +388,12 @@ public class CassandraEndpoint extends 
ScheduledPollEndpoint implements Endpoint
         this.session = session;
     }
 
+    @Deprecated
     public String getClusterName() {
         return clusterName;
     }
 
+    @Deprecated
     public void setClusterName(String clusterName) {
         this.clusterName = clusterName;
     }
diff --git 
a/components/camel-cassandraql/src/test/java/org/apache/camel/component/cassandra/CassandraEndpointOptionsTest.java
 
b/components/camel-cassandraql/src/test/java/org/apache/camel/component/cassandra/CassandraEndpointOptionsTest.java
new file mode 100644
index 000000000000..7a3e1aaa3862
--- /dev/null
+++ 
b/components/camel-cassandraql/src/test/java/org/apache/camel/component/cassandra/CassandraEndpointOptionsTest.java
@@ -0,0 +1,101 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cassandra;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+import com.datastax.oss.driver.api.core.DefaultConsistencyLevel;
+import com.datastax.oss.driver.api.core.cql.ResultSet;
+import com.datastax.oss.driver.api.core.cql.Row;
+import org.apache.camel.CatalogCamelContext;
+import org.apache.camel.test.junit6.CamelTestSupport;
+import org.apache.camel.util.json.JsonObject;
+import org.apache.camel.util.json.Jsoner;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+/**
+ * Endpoint options of the cql component that need no Cassandra server: the 
endpoint is created, but not started (a
+ * started endpoint connects to the hosts).
+ */
+public class CassandraEndpointOptionsTest extends CamelTestSupport {
+
+    private CassandraEndpoint createEndpoint(String uri) throws Exception {
+        return (CassandraEndpoint) context.getComponent("cql", 
CassandraComponent.class).createEndpoint(uri);
+    }
+
+    @Test
+    public void testLowerCaseLimitConversionStrategy() throws Exception {
+        CassandraEndpoint endpoint = 
createEndpoint("cql:localhost/camel_ks?resultSetConversionStrategy=limit_10");
+
+        ResultSet resultSet = mock(ResultSet.class);
+        List<Row> rows = Collections.nCopies(20, mock(Row.class));
+        when(resultSet.iterator()).thenReturn(rows.iterator());
+
+        Object body = 
endpoint.getResultSetConversionStrategy().getBody(resultSet);
+        assertEquals(10, ((List<?>) body).size());
+    }
+
+    @Test
+    public void testUnknownExtraTypeCodecFails() throws Exception {
+        CassandraEndpoint endpoint = 
createEndpoint("cql:localhost/camel_ks?extraTypeCodecs=BLOB_TO_ARRAY,BLOB_TO_ARAY");
+
+        IllegalArgumentException e = 
assertThrows(IllegalArgumentException.class, endpoint::createSessionBuilder);
+        assertTrue(e.getMessage().contains("BLOB_TO_ARAY"), e.getMessage());
+        assertTrue(e.getMessage().contains("LOCAL_TIMESTAMP_UTC"), 
e.getMessage());
+    }
+
+    @Test
+    public void testKnownExtraTypeCodecsAndEmptyNames() throws Exception {
+        CassandraEndpoint endpoint = 
createEndpoint("cql:localhost/camel_ks?extraTypeCodecs=BLOB_TO_ARRAY, 
TIMESTAMP_UTC,");
+
+        assertDoesNotThrow(endpoint::createSessionBuilder);
+    }
+
+    @Test
+    public void testConsistencyLevelIsSetByTheEndpointConfigurer() throws 
Exception {
+        CassandraEndpoint endpoint = createEndpoint("cql:localhost/camel_ks");
+
+        // the generated configurer binds the option, without the reflection 
fallback of the property binding
+        assertTrue(new CassandraEndpointConfigurer().configure(context, 
endpoint, "consistencyLevel", "QUORUM", true));
+        assertEquals(DefaultConsistencyLevel.QUORUM, 
endpoint.getConsistencyLevel());
+    }
+
+    @Test
+    public void testComponentMetadata() throws Exception {
+        JsonObject json = (JsonObject) Jsoner.deserialize(
+                ((CatalogCamelContext) 
context).getComponentParameterJsonSchema("cql"));
+        Map<String, Object> properties = json.getMap("properties");
+        Map<String, Object> headers = json.getMap("headers");
+
+        Map<?, ?> consistencyLevel = (Map<?, ?>) 
properties.get("consistencyLevel");
+        assertNotNull(consistencyLevel, "consistencyLevel is an endpoint 
option");
+        assertTrue(((List<?>) 
consistencyLevel.get("enum")).contains("LOCAL_QUORUM"));
+        assertEquals("ALL", ((Map<?, ?>) 
properties.get("resultSetConversionStrategy")).get("defaultValue"));
+        assertEquals(Boolean.TRUE, ((Map<?, ?>) 
properties.get("clusterName")).get("deprecated"));
+        assertEquals("Object", ((Map<?, ?>) 
headers.get(CassandraConstants.CQL_QUERY)).get("javaType"));
+    }
+}
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index c6841839ea40..c39fa1eded0e 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -1242,6 +1242,16 @@ Also, when the value of an entry expires (TTL) Cassandra 
can leave the row behin
 entry stored with a TTL that replaces an existing entry or that is stored by 
`replace`. Such a row is now considered
 absent: `contains`, `keys` and `size` no longer report it, and `putIfAbsent` 
can store a value for it.
 
+=== camel-cassandraql - an unknown name in extraTypeCodecs fails the start of 
the endpoint
+
+An unknown name in the `extraTypeCodecs` option of a `cql` endpoint, for 
example a typo such as `BLOB_TO_ARAY`, now
+fails the start of the endpoint with an `IllegalArgumentException` that lists 
the possible names. Before, the name was
+ignored, no codec was registered, and the error came only later, when a row 
was read or written. Empty names, as after
+a trailing comma, are still ignored.
+
+The `clusterName` option is deprecated. It has had no effect since Camel 3.5, 
when the component moved to the Cassandra
+Java Driver 4.x: the component does not pass it to the driver, whose session 
builder has no cluster name setting.
+
 === camel-mongodb - the change streams consumer stores the post batch resume 
token
 
 While no change of its collection arrives, the change streams consumer now 
takes the post batch resume token of the
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CassandraEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CassandraEndpointBuilderFactory.java
index 46b1fcc8ae1b..dd816c9d1580 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CassandraEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CassandraEndpointBuilderFactory.java
@@ -45,6 +45,8 @@ public interface CassandraEndpointBuilderFactory {
         }
         /**
          * Not used: the component does not pass this value to the driver.
+         * Deprecation note: The session builder of the Cassandra Java Driver
+         * 4.x has no cluster name setting.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -53,6 +55,7 @@ public interface CassandraEndpointBuilderFactory {
          * @param clusterName the value to set
          * @return the dsl builder
          */
+        @Deprecated
         default CassandraEndpointConsumerBuilder clusterName(String 
clusterName) {
             doSetProperty("clusterName", clusterName);
             return this;
@@ -854,6 +857,46 @@ public interface CassandraEndpointBuilderFactory {
             doSetProperty("pollStrategy", pollStrategy);
             return this;
         }
+        /**
+         * The consistency level of the prepared statements: the cql option and
+         * a CQL String in the CamelCqlQuery header, when prepareStatements is
+         * true. It is not used for a simple statement 
(prepareStatements=false)
+         * or a SimpleStatement in the header. If not set, the driver uses the
+         * consistency level of its configuration.
+         * 
+         * The option is a:
+         * 
<code>com.datastax.oss.driver.api.core.DefaultConsistencyLevel</code>
+         * type.
+         * 
+         * Group: advanced
+         * 
+         * @param consistencyLevel the value to set
+         * @return the dsl builder
+         */
+        default AdvancedCassandraEndpointConsumerBuilder 
consistencyLevel(com.datastax.oss.driver.api.core.DefaultConsistencyLevel 
consistencyLevel) {
+            doSetProperty("consistencyLevel", consistencyLevel);
+            return this;
+        }
+        /**
+         * The consistency level of the prepared statements: the cql option and
+         * a CQL String in the CamelCqlQuery header, when prepareStatements is
+         * true. It is not used for a simple statement 
(prepareStatements=false)
+         * or a SimpleStatement in the header. If not set, the driver uses the
+         * consistency level of its configuration.
+         * 
+         * The option will be converted to a
+         * 
<code>com.datastax.oss.driver.api.core.DefaultConsistencyLevel</code>
+         * type.
+         * 
+         * Group: advanced
+         * 
+         * @param consistencyLevel the value to set
+         * @return the dsl builder
+         */
+        default AdvancedCassandraEndpointConsumerBuilder 
consistencyLevel(String consistencyLevel) {
+            doSetProperty("consistencyLevel", consistencyLevel);
+            return this;
+        }
         /**
          * The extra codecs of the driver (from its ExtraTypeCodecs class) to
          * register, separated by commas: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
@@ -862,8 +905,8 @@ public interface CassandraEndpointBuilderFactory {
          * TIMESTAMP_UTC, TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
          * ZONED_TIMESTAMP_SYSTEM, ZONED_TIMESTAMP_UTC,
          * ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM or
-         * LOCAL_TIMESTAMP_UTC. An unknown name is ignored. Used only for the
-         * session that the endpoint creates from the hosts.
+         * LOCAL_TIMESTAMP_UTC. An unknown name fails the start of the 
endpoint.
+         * Used only for the session that the endpoint creates from the hosts.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -899,13 +942,15 @@ public interface CassandraEndpointBuilderFactory {
          * How the rows of the result become the message body: ALL for a List 
of
          * all the com.datastax.oss.driver.api.core.cql.Row objects (the
          * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
-         * for a List of at most n rows. A custom
+         * for a List of at most n rows. The names are matched ignoring case. A
+         * custom
          * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
          * be set instead.
          * 
          * The option is a:
          * 
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code> 
type.
          * 
+         * Default: ALL
          * Group: advanced
          * 
          * @param resultSetConversionStrategy the value to set
@@ -919,13 +964,15 @@ public interface CassandraEndpointBuilderFactory {
          * How the rows of the result become the message body: ALL for a List 
of
          * all the com.datastax.oss.driver.api.core.cql.Row objects (the
          * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
-         * for a List of at most n rows. A custom
+         * for a List of at most n rows. The names are matched ignoring case. A
+         * custom
          * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
          * be set instead.
          * 
          * The option will be converted to a
          * 
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code> 
type.
          * 
+         * Default: ALL
          * Group: advanced
          * 
          * @param resultSetConversionStrategy the value to set
@@ -987,6 +1034,8 @@ public interface CassandraEndpointBuilderFactory {
 
         /**
          * Not used: the component does not pass this value to the driver.
+         * Deprecation note: The session builder of the Cassandra Java Driver
+         * 4.x has no cluster name setting.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -995,6 +1044,7 @@ public interface CassandraEndpointBuilderFactory {
          * @param clusterName the value to set
          * @return the dsl builder
          */
+        @Deprecated
         default CassandraEndpointProducerBuilder clusterName(String 
clusterName) {
             doSetProperty("clusterName", clusterName);
             return this;
@@ -1157,6 +1207,46 @@ public interface CassandraEndpointBuilderFactory {
             doSetProperty("lazyStartProducer", lazyStartProducer);
             return this;
         }
+        /**
+         * The consistency level of the prepared statements: the cql option and
+         * a CQL String in the CamelCqlQuery header, when prepareStatements is
+         * true. It is not used for a simple statement 
(prepareStatements=false)
+         * or a SimpleStatement in the header. If not set, the driver uses the
+         * consistency level of its configuration.
+         * 
+         * The option is a:
+         * 
<code>com.datastax.oss.driver.api.core.DefaultConsistencyLevel</code>
+         * type.
+         * 
+         * Group: advanced
+         * 
+         * @param consistencyLevel the value to set
+         * @return the dsl builder
+         */
+        default AdvancedCassandraEndpointProducerBuilder 
consistencyLevel(com.datastax.oss.driver.api.core.DefaultConsistencyLevel 
consistencyLevel) {
+            doSetProperty("consistencyLevel", consistencyLevel);
+            return this;
+        }
+        /**
+         * The consistency level of the prepared statements: the cql option and
+         * a CQL String in the CamelCqlQuery header, when prepareStatements is
+         * true. It is not used for a simple statement 
(prepareStatements=false)
+         * or a SimpleStatement in the header. If not set, the driver uses the
+         * consistency level of its configuration.
+         * 
+         * The option will be converted to a
+         * 
<code>com.datastax.oss.driver.api.core.DefaultConsistencyLevel</code>
+         * type.
+         * 
+         * Group: advanced
+         * 
+         * @param consistencyLevel the value to set
+         * @return the dsl builder
+         */
+        default AdvancedCassandraEndpointProducerBuilder 
consistencyLevel(String consistencyLevel) {
+            doSetProperty("consistencyLevel", consistencyLevel);
+            return this;
+        }
         /**
          * The extra codecs of the driver (from its ExtraTypeCodecs class) to
          * register, separated by commas: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
@@ -1165,8 +1255,8 @@ public interface CassandraEndpointBuilderFactory {
          * TIMESTAMP_UTC, TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
          * ZONED_TIMESTAMP_SYSTEM, ZONED_TIMESTAMP_UTC,
          * ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM or
-         * LOCAL_TIMESTAMP_UTC. An unknown name is ignored. Used only for the
-         * session that the endpoint creates from the hosts.
+         * LOCAL_TIMESTAMP_UTC. An unknown name fails the start of the 
endpoint.
+         * Used only for the session that the endpoint creates from the hosts.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -1202,13 +1292,15 @@ public interface CassandraEndpointBuilderFactory {
          * How the rows of the result become the message body: ALL for a List 
of
          * all the com.datastax.oss.driver.api.core.cql.Row objects (the
          * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
-         * for a List of at most n rows. A custom
+         * for a List of at most n rows. The names are matched ignoring case. A
+         * custom
          * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
          * be set instead.
          * 
          * The option is a:
          * 
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code> 
type.
          * 
+         * Default: ALL
          * Group: advanced
          * 
          * @param resultSetConversionStrategy the value to set
@@ -1222,13 +1314,15 @@ public interface CassandraEndpointBuilderFactory {
          * How the rows of the result become the message body: ALL for a List 
of
          * all the com.datastax.oss.driver.api.core.cql.Row objects (the
          * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
-         * for a List of at most n rows. A custom
+         * for a List of at most n rows. The names are matched ignoring case. A
+         * custom
          * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
          * be set instead.
          * 
          * The option will be converted to a
          * 
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code> 
type.
          * 
+         * Default: ALL
          * Group: advanced
          * 
          * @param resultSetConversionStrategy the value to set
@@ -1291,6 +1385,8 @@ public interface CassandraEndpointBuilderFactory {
 
         /**
          * Not used: the component does not pass this value to the driver.
+         * Deprecation note: The session builder of the Cassandra Java Driver
+         * 4.x has no cluster name setting.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -1299,6 +1395,7 @@ public interface CassandraEndpointBuilderFactory {
          * @param clusterName the value to set
          * @return the dsl builder
          */
+        @Deprecated
         default CassandraEndpointBuilder clusterName(String clusterName) {
             doSetProperty("clusterName", clusterName);
             return this;
@@ -1418,6 +1515,46 @@ public interface CassandraEndpointBuilderFactory {
             return (CassandraEndpointBuilder) this;
         }
 
+        /**
+         * The consistency level of the prepared statements: the cql option and
+         * a CQL String in the CamelCqlQuery header, when prepareStatements is
+         * true. It is not used for a simple statement 
(prepareStatements=false)
+         * or a SimpleStatement in the header. If not set, the driver uses the
+         * consistency level of its configuration.
+         * 
+         * The option is a:
+         * 
<code>com.datastax.oss.driver.api.core.DefaultConsistencyLevel</code>
+         * type.
+         * 
+         * Group: advanced
+         * 
+         * @param consistencyLevel the value to set
+         * @return the dsl builder
+         */
+        default AdvancedCassandraEndpointBuilder 
consistencyLevel(com.datastax.oss.driver.api.core.DefaultConsistencyLevel 
consistencyLevel) {
+            doSetProperty("consistencyLevel", consistencyLevel);
+            return this;
+        }
+        /**
+         * The consistency level of the prepared statements: the cql option and
+         * a CQL String in the CamelCqlQuery header, when prepareStatements is
+         * true. It is not used for a simple statement 
(prepareStatements=false)
+         * or a SimpleStatement in the header. If not set, the driver uses the
+         * consistency level of its configuration.
+         * 
+         * The option will be converted to a
+         * 
<code>com.datastax.oss.driver.api.core.DefaultConsistencyLevel</code>
+         * type.
+         * 
+         * Group: advanced
+         * 
+         * @param consistencyLevel the value to set
+         * @return the dsl builder
+         */
+        default AdvancedCassandraEndpointBuilder consistencyLevel(String 
consistencyLevel) {
+            doSetProperty("consistencyLevel", consistencyLevel);
+            return this;
+        }
         /**
          * The extra codecs of the driver (from its ExtraTypeCodecs class) to
          * register, separated by commas: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
@@ -1426,8 +1563,8 @@ public interface CassandraEndpointBuilderFactory {
          * TIMESTAMP_UTC, TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
          * ZONED_TIMESTAMP_SYSTEM, ZONED_TIMESTAMP_UTC,
          * ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM or
-         * LOCAL_TIMESTAMP_UTC. An unknown name is ignored. Used only for the
-         * session that the endpoint creates from the hosts.
+         * LOCAL_TIMESTAMP_UTC. An unknown name fails the start of the 
endpoint.
+         * Used only for the session that the endpoint creates from the hosts.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -1463,13 +1600,15 @@ public interface CassandraEndpointBuilderFactory {
          * How the rows of the result become the message body: ALL for a List 
of
          * all the com.datastax.oss.driver.api.core.cql.Row objects (the
          * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
-         * for a List of at most n rows. A custom
+         * for a List of at most n rows. The names are matched ignoring case. A
+         * custom
          * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
          * be set instead.
          * 
          * The option is a:
          * 
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code> 
type.
          * 
+         * Default: ALL
          * Group: advanced
          * 
          * @param resultSetConversionStrategy the value to set
@@ -1483,13 +1622,15 @@ public interface CassandraEndpointBuilderFactory {
          * How the rows of the result become the message body: ALL for a List 
of
          * all the com.datastax.oss.driver.api.core.cql.Row objects (the
          * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
-         * for a List of at most n rows. A custom
+         * for a List of at most n rows. The names are matched ignoring case. A
+         * custom
          * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
          * be set instead.
          * 
          * The option will be converted to a
          * 
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code> 
type.
          * 
+         * Default: ALL
          * Group: advanced
          * 
          * @param resultSetConversionStrategy the value to set
@@ -1648,7 +1789,7 @@ public interface CassandraEndpointBuilderFactory {
          * uses the cql option. With prepareStatements, the statement is
          * prepared for each message.
          * 
-         * The option is a: {@code String} type.
+         * The option is a: {@code Object} type.
          * 
          * Group: producer
          * 

Reply via email to