The cql component aims at integrating Cassandra 2.0+ using the CQL3 API (not the Thrift API). It's based on Cassandra Java Driver provided by DataStax.
Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
beanRef | path | common | java.lang.String | beanRef is defined using bean:id | |||
hosts | path | common | java.lang.String | Hostname(s) cassansdra server(s). Multiple hosts can be separated by comma. | |||
port | path | common | java.lang.Integer | Port number of cassansdra server(s) | |||
keyspace | path | common | java.lang.String | Keyspace to use | |||
cluster | parameter | common | com.datastax.driver.core.Cluster | To use the Cluster instance (you would normally not use this option) | |||
clusterName | parameter | common | java.lang.String | Cluster name | |||
consistencyLevel | parameter | common | com.datastax.driver.core.ConsistencyLevel | ANY ONE TWO THREE QUORUM ALL LOCAL_QUORUM EACH_QUORUM SERIAL LOCAL_SERIAL LOCAL_ONE |
Consistency level to use | ||
cql | parameter | common | java.lang.String | CQL query to perform. Can be overridden with the message header with key CamelCqlQuery. | |||
loadBalancingPolicy | parameter | common | java.lang.String | To use a specific LoadBalancingPolicy | |||
password | parameter | common | java.lang.String | Password for session authentication | |||
prepareStatements | parameter | common | true | boolean | Whether to use PreparedStatements or regular Statements | ||
resultSetConversionStrategy | parameter | common | java.lang.String | To use a custom class that implements logic for converting ResultSet into message body ALL, ONE, LIMIT_10, LIMIT_100... | |||
session | parameter | common | com.datastax.driver.core.Session | To use the Session instance (you would normally not use this option) | |||
username | parameter | common | java.lang.String | Username for session authentication | |||
bridgeErrorHandler | parameter | consumer | boolean | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exceptionHandler | parameter | consumer (advanced) | org.apache.camel.spi.ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exchangePattern | parameter | consumer (advanced) | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the exchange pattern when the consumer creates an exchange. | ||
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |
Cassandra 2 CQL3 consumer.