davsclaus opened a new pull request, #30953: URL: https://github.com/apache/camel/pull/30953
# Description Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). The umbrella ticket stays open. ## Summary New texts for 40 descriptions of camel-spring-redis: the component description, the component option `redisTemplate`, 9 endpoint options and 29 headers. Most header texts only repeated the header name ("The key.", "Start", "Count"); they now say which commands read each header and in which unit (seconds or milliseconds for `Timeout` and `Timestamp`, meters for `Radius`), and that `Fields` holds the keys for `MGET` and `Value` the new key name for `RENAME`. The option texts said "Reference to a pre-configured ... instance to use"; they now say which side uses each option, what the endpoint creates when it is not set (a `JedisConnectionFactory` for host and port, a `RedisTemplate`, a listener container), that the consumer needs `SUBSCRIBE` or `PSUBSCRIBE` and fails to start with the default `SET`, and that the default JDK serializer stores keys and values in Java serialized form. Sources: the Camel code of the component (`RedisConfiguration`, `RedisProducer`, `RedisClient`, `ExchangeConverter`, `RedisConsumer`) and Spring Data Redis 4.2.0 (`RedisTemplate`, `JedisConverters` for the distance unit). ### Found, not changed - The `@UriEndpoint` syntax is `spring-redist:host:port` (typo); the generated JSON shows `spring-redis:host:port`. - `host` and `port` are marked as required, but the endpoint falls back to localhost and 6379, and does not use them when `connectionFactory` is set. - `channels` and `listenerContainer` are consumer-only and `redisTemplate` is producer-only, but only `listenerContainer` has a consumer label; `channels`, `redisTemplate`, `connectionFactory` and `serializer` have no label. - The `CamelRedis.Channel` header has javaType `byte[] or String`, but the consumer sets a String and the producer reads a String. - Only the `CamelRedis.Command` header has a label; the consumer sets `CamelRedis.Channel` and `CamelRedis.Pattern`, and the producer reads the other headers. - `ZREMRANGEBYSCORE` reads its range from `CamelRedis.Start` and `CamelRedis.End` (Long) instead of `CamelRedis.Min` and `CamelRedis.Max` (Double), as `ZCOUNT` and `ZRANGEBYSCORE` do, so a fractional score cannot be given. ## Tests - There is no new test, as only description text changes. - A script compared the component JSON with the parent commit: only `description` fields changed (40 texts). # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran the formatter and built the module, then regenerated the catalog copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
