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 379badf5aa55 CAMEL-27616: camel-spring-redis - ZREMRANGEBYSCORE score
range, syntax typo, path defaults, labels (#31003)
379badf5aa55 is described below
commit 379badf5aa55a43d2e73abd576202acda8816218
Author: allthingssecurity <[email protected]>
AuthorDate: Fri Nov 27 22:17:45 2026 +0530
CAMEL-27616: camel-spring-redis - ZREMRANGEBYSCORE score range, syntax
typo, path defaults, labels (#31003)
1. ZREMRANGEBYSCORE read its score range from the CamelRedis.Start and
CamelRedis.End headers as Long, while ZCOUNT, ZRANGEBYSCORE and
ZREVRANGEBYSCORE read CamelRedis.Min and CamelRedis.Max as Double. A
fractional range could not be given, and a route that set Min and Max
failed with a NullPointerException (the null Long was unboxed). It now
reads Min and Max as Double, and falls back to Start and End for each
bound that is not set, so existing routes keep working. RedisClient has
a new zremrangebyscore(String, Double, Double); the Long variant stays.
2. The syntax of @UriEndpoint was "spring-redist:host:port". It is now
"spring-redis:host:port" (the generated JSON already showed the scheme).
3. host and port were required without a default, while the endpoint
connects to localhost:6379 when they are not set (the defaults of
Spring Data Redis RedisStandaloneConfiguration). They now have the
defaultValue localhost and 6379. They stay required: with a default, the
endpoint URI factory and the catalog fill in the value when it is
missing, whereas with required=false a port without a host would build
spring-redis:6379, which the component reads as host 6379.
4. channels is only read by the consumer and redisTemplate only by the
producer. They now have the labels consumer and producer.
connectionFactory and serializer keep no label: advanced would move
them to the Advanced builders of the Endpoint DSL, so
springRedis("...").connectionFactory(cf) would stop compiling, and both
are used by the consumer and the producer.
5. The CamelRedis.Channel header had javaType "byte[] or String". The
consumer sets a String and PUBLISH reads a String, so it is now String.
6. Only CamelRedis.Command had a label. All headers that only the producer
reads now have label producer. CamelRedis.Channel and
CamelRedis.Pattern, which the consumer sets and the producer reads, stay
common.
Upgrade guide entry for 4.24 for points 1 and 4. Regenerated: the
component JSON and its catalog copy, the doc page and its catalog copy,
RedisEndpointUriFactory, and the endpoint DSL.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../camel/catalog/components/spring-redis.json | 76 ++---
.../camel/catalog/docs/spring-redis-component.adoc | 3 +-
.../component/redis/RedisEndpointUriFactory.java | 4 +-
.../apache/camel/component/redis/spring-redis.json | 76 ++---
.../src/main/docs/spring-redis-component.adoc | 3 +-
.../camel/component/redis/ExchangeConverter.java | 16 ++
.../apache/camel/component/redis/RedisClient.java | 4 +
.../camel/component/redis/RedisConfiguration.java | 12 +-
.../camel/component/redis/RedisConstants.java | 88 ++++--
.../camel/component/redis/RedisEndpoint.java | 2 +-
.../camel/component/redis/RedisProducer.java | 2 +-
.../redis/RedisEndpointUriFactoryTest.java | 39 +++
.../camel/component/redis/RedisSortedSetTest.java | 24 ++
.../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc | 11 +
.../builder/endpoint/StaticEndpointBuilders.java | 4 +
.../endpoint/dsl/RedisEndpointBuilderFactory.java | 308 +++++++--------------
16 files changed, 346 insertions(+), 326 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/spring-redis.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/spring-redis.json
index dc66d6f28daa..12cd57d6964f 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/spring-redis.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/spring-redis.json
@@ -31,34 +31,34 @@
},
"headers": {
"CamelRedis.Command": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the Redis command that the producer runs, such as
GET or HSET, in any case. Replaces the command option for this message.",
"constantName": "org.apache.camel.component.redis.RedisConstants#COMMAND" },
- "CamelRedis.Key": { "index": 1, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key that the command works on, used by most commands, such as GET, SET, HSET,
LPUSH, SADD and ZADD. For SDIFF, SINTER, SUNION, their STORE forms, ZINTERSTORE
and ZUNIONSTORE, the first key, which is combined with the keys of the
CamelRedis.Keys header.", "constantName [...]
- "CamelRedis.Keys": { "index": 2, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType":
"Collection<String> or String", "deprecated": false, "autowired": false,
"secret": false, "description": "The keys to delete for DEL and to watch for
WATCH, and for SDIFF, SINTER, SUNION, their STORE forms, ZINTERSTORE and
ZUNIONSTORE the keys that are combined with the key of the CamelRedis.Key
header. A collection of keys, or a String with one key or [...]
- "CamelRedis.Field": { "index": 3, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
field of the hash for HDEL, HEXISTS, HGET, HINCRBY, HSET and HSETNX.",
"constantName": "org.apache.camel.component.redis.RedisConstants#FIELD" },
- "CamelRedis.Fields": { "index": 4, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType":
"Collection<String>", "deprecated": false, "autowired": false, "secret": false,
"description": "The fields of the hash to read for HMGET, and the keys to read
for MGET.", "constantName":
"org.apache.camel.component.redis.RedisConstants#FIELDS" },
- "CamelRedis.Value": { "index": 5, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Object",
"deprecated": false, "autowired": false, "secret": false, "description": "The
value for the commands that store, add or look up one value or member, such as
SET, SETNX, GETSET, HSET, LPUSH, SADD, SISMEMBER, ZADD and GEOADD. It is a Long
for INCRBY, DECRBY and HINCRBY, a Boolean for SETBIT, the new name of the key
for RENAME and RENAMENX, and [...]
- "CamelRedis.Values": { "index": 6, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Map<String,
Object> or Collection<Object>", "deprecated": false, "autowired": false,
"secret": false, "description": "A Map of keys to values for MSET and MSETNX,
and of fields to values for HMSET. For GEODIST, a Collection whose first two
elements are the members to measure the distance between.", "constantName":
"org.apache.camel.component.redis.Re [...]
- "CamelRedis.Start": { "index": 7, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the first element for LRANGE, LTRIM, ZRANGE, ZREVRANGE and
ZREMRANGEBYRANK, the offset of the first byte for GETRANGE, and the minimum
score for ZREMRANGEBYSCORE. Indexes start at 0, and a negative index counts
from the end.", "constantName": "org.apache.came [...]
- "CamelRedis.End": { "index": 8, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the last element, inclusive, for LRANGE, LTRIM, ZRANGE, ZREVRANGE and
ZREMRANGEBYRANK, the offset of the last byte for GETRANGE, and the maximum
score for ZREMRANGEBYSCORE. Indexes start at 0, and a negative index counts
from the end, so -1 is the last element. [...]
- "CamelRedis.Timeout": { "index": 9, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
time to live of the key in seconds for EXPIRE and SETEX, and in milliseconds
for PEXPIRE. For BLPOP, BRPOP and BRPOPLPUSH, how many seconds to wait for an
element while the list is empty.", "constantName":
"org.apache.camel.component.redis.RedisConstants#TIMEOUT" },
- "CamelRedis.Offset": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
offset of the bit for GETBIT and SETBIT, and the offset in bytes where SETRANGE
writes the value.", "constantName":
"org.apache.camel.component.redis.RedisConstants#OFFSET" },
- "CamelRedis.Destination": { "index": 11, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key that receives the result for RPOPLPUSH, BRPOPLPUSH, SMOVE, SDIFFSTORE,
SINTERSTORE, SUNIONSTORE, ZINTERSTORE and ZUNIONSTORE.", "constantName":
"org.apache.camel.component.redis.RedisConstants#DESTINATION" },
- "CamelRedis.Channel": { "index": 12, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "byte[] or
String", "deprecated": false, "autowired": false, "secret": false,
"description": "The channel that PUBLISH posts the message to. The consumer
sets it to the name of the channel that the message was received on.",
"constantName": "org.apache.camel.component.redis.RedisConstants#CHANNEL" },
- "CamelRedis.Message": { "index": 13, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Object",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message that PUBLISH posts to the channel of the CamelRedis.Channel header. The
serializer of the RedisTemplate writes it, so with the default JDK serializer
it must be Serializable.", "constantName":
"org.apache.camel.component.redis.RedisConstants#MESSAGE" },
- "CamelRedis.Index": { "index": 14, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the element of the list for LINDEX and LSET. Indexes start at 0, and a
negative index counts from the end, so -1 is the last element.",
"constantName": "org.apache.camel.component.redis.RedisConstants#INDEX" },
- "CamelRedis.Position": { "index": 15, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "Where
LINSERT inserts the value: BEFORE or AFTER the pivot, in upper case.",
"constantName": "org.apache.camel.component.redis.RedisConstants#POSITION" },
- "CamelRedis.Pivot": { "index": 16, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
element of the list that LINSERT inserts the value before or after.",
"constantName": "org.apache.camel.component.redis.RedisConstants#PIVOT" },
- "CamelRedis.Count": { "index": 17, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "For
LREM, how many elements equal to the value to remove: a positive count removes
from the head, a negative count from the tail, and 0 removes all of them. For
GEORADIUS and GEORADIUSBYMEMBER, the maximum number of members to return; if
not set, all of them are returned [...]
- "CamelRedis.Timestamp": { "index": 18, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
time when the key expires, in seconds since the epoch for EXPIREAT and in
milliseconds since the epoch for PEXPIREAT.", "constantName":
"org.apache.camel.component.redis.RedisConstants#TIMESTAMP" },
+ "CamelRedis.Key": { "index": 1, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The key that the command works on, used by most commands, such
as GET, SET, HSET, LPUSH, SADD and ZADD. For SDIFF, SINTER, SUNION, their STORE
forms, ZINTERSTORE and ZUNIONSTORE, the first key, which is combined with the
keys of the CamelRedis.Keys header.", "co [...]
+ "CamelRedis.Keys": { "index": 2, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Collection<String> or String", "deprecated": false, "autowired": false,
"secret": false, "description": "The keys to delete for DEL and to watch for
WATCH, and for SDIFF, SINTER, SUNION, their STORE forms, ZINTERSTORE and
ZUNIONSTORE the keys that are combined with the key of the CamelRedis.Key
header. A collection of keys, or a String with o [...]
+ "CamelRedis.Field": { "index": 3, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field of the hash for HDEL, HEXISTS, HGET, HINCRBY, HSET
and HSETNX.", "constantName":
"org.apache.camel.component.redis.RedisConstants#FIELD" },
+ "CamelRedis.Fields": { "index": 4, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Collection<String>", "deprecated": false, "autowired": false, "secret": false,
"description": "The fields of the hash to read for HMGET, and the keys to read
for MGET.", "constantName":
"org.apache.camel.component.redis.RedisConstants#FIELDS" },
+ "CamelRedis.Value": { "index": 5, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Object", "deprecated": false, "autowired": false, "secret": false,
"description": "The value for the commands that store, add or look up one value
or member, such as SET, SETNX, GETSET, HSET, LPUSH, SADD, SISMEMBER, ZADD and
GEOADD. It is a Long for INCRBY, DECRBY and HINCRBY, a Boolean for SETBIT, the
new name of the key for RENAME and RENA [...]
+ "CamelRedis.Values": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Map<String, Object> or Collection<Object>", "deprecated": false, "autowired":
false, "secret": false, "description": "A Map of keys to values for MSET and
MSETNX, and of fields to values for HMSET. For GEODIST, a Collection whose
first two elements are the members to measure the distance between.",
"constantName": "org.apache.camel.componen [...]
+ "CamelRedis.Start": { "index": 7, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The index of the first element for LRANGE, LTRIM, ZRANGE,
ZREVRANGE and ZREMRANGEBYRANK, the offset of the first byte for GETRANGE, and
the minimum score for ZREMRANGEBYSCORE when CamelRedis.Min is not set. Indexes
start at 0, and a negative index counts from th [...]
+ "CamelRedis.End": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The index of the last element, inclusive, for LRANGE, LTRIM,
ZRANGE, ZREVRANGE and ZREMRANGEBYRANK, the offset of the last byte for
GETRANGE, and the maximum score for ZREMRANGEBYSCORE when CamelRedis.Max is not
set. Indexes start at 0, and a negative index counts [...]
+ "CamelRedis.Timeout": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The time to live of the key in seconds for EXPIRE and SETEX,
and in milliseconds for PEXPIRE. For BLPOP, BRPOP and BRPOPLPUSH, how many
seconds to wait for an element while the list is empty.", "constantName":
"org.apache.camel.component.redis.RedisConstants#T [...]
+ "CamelRedis.Offset": { "index": 10, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The offset of the bit for GETBIT and SETBIT, and the offset in
bytes where SETRANGE writes the value.", "constantName":
"org.apache.camel.component.redis.RedisConstants#OFFSET" },
+ "CamelRedis.Destination": { "index": 11, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The key that receives the result for RPOPLPUSH, BRPOPLPUSH,
SMOVE, SDIFFSTORE, SINTERSTORE, SUNIONSTORE, ZINTERSTORE and ZUNIONSTORE.",
"constantName": "org.apache.camel.component.redis.RedisConstants#DESTINATION" },
+ "CamelRedis.Channel": { "index": 12, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
channel that PUBLISH posts the message to. The consumer sets it to the name of
the channel that the message was received on.", "constantName":
"org.apache.camel.component.redis.RedisConstants#CHANNEL" },
+ "CamelRedis.Message": { "index": 13, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Object", "deprecated": false, "autowired": false, "secret": false,
"description": "The message that PUBLISH posts to the channel of the
CamelRedis.Channel header. The serializer of the RedisTemplate writes it, so
with the default JDK serializer it must be Serializable.", "constantName":
"org.apache.camel.component.redis.RedisConstants#MES [...]
+ "CamelRedis.Index": { "index": 14, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The index of the element of the list for LINDEX and LSET.
Indexes start at 0, and a negative index counts from the end, so -1 is the last
element.", "constantName":
"org.apache.camel.component.redis.RedisConstants#INDEX" },
+ "CamelRedis.Position": { "index": 15, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "Where LINSERT inserts the value: BEFORE or AFTER the pivot, in
upper case.", "constantName":
"org.apache.camel.component.redis.RedisConstants#POSITION" },
+ "CamelRedis.Pivot": { "index": 16, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The element of the list that LINSERT inserts the value before
or after.", "constantName":
"org.apache.camel.component.redis.RedisConstants#PIVOT" },
+ "CamelRedis.Count": { "index": 17, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "For LREM, how many elements equal to the value to remove: a
positive count removes from the head, a negative count from the tail, and 0
removes all of them. For GEORADIUS and GEORADIUSBYMEMBER, the maximum number of
members to return; if not set, all of them ar [...]
+ "CamelRedis.Timestamp": { "index": 18, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The time when the key expires, in seconds since the epoch for
EXPIREAT and in milliseconds since the epoch for PEXPIREAT.", "constantName":
"org.apache.camel.component.redis.RedisConstants#TIMESTAMP" },
"CamelRedis.Pattern": { "index": 19, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "byte[] or
String", "deprecated": false, "autowired": false, "secret": false,
"description": "The glob-style pattern of the keys that KEYS returns, such as
user:*. With the PSUBSCRIBE command, the consumer sets it, as a byte array, to
the pattern of the channels option that the channel of the message matched.",
"constantName": "org.apache.camel.comp [...]
- "CamelRedis.Db": { "index": 20, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the database that MOVE moves the key to.", "constantName":
"org.apache.camel.component.redis.RedisConstants#DB" },
- "CamelRedis.Score": { "index": 21, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
score of the member that ZADD adds.", "constantName":
"org.apache.camel.component.redis.RedisConstants#SCORE" },
- "CamelRedis.Min": { "index": 22, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
minimum score, inclusive, for ZCOUNT, ZRANGEBYSCORE and ZREVRANGEBYSCORE.",
"constantName": "org.apache.camel.component.redis.RedisConstants#MIN" },
- "CamelRedis.Max": { "index": 23, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
maximum score, inclusive, for ZCOUNT, ZRANGEBYSCORE and ZREVRANGEBYSCORE.",
"constantName": "org.apache.camel.component.redis.RedisConstants#MAX" },
- "CamelRedis.Increment": { "index": 24, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
amount that ZINCRBY adds to the score of the member.", "constantName":
"org.apache.camel.component.redis.RedisConstants#INCREMENT" },
- "CamelRedis.WithScore": { "index": 25, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Boolean",
"deprecated": false, "autowired": false, "secret": false, "description":
"Whether ZRANGE and ZREVRANGE return the members together with their scores, as
a Set of ZSetOperations.TypedTuple. If not set or false, they return the
members only.", "constantName":
"org.apache.camel.component.redis.RedisConstants#WITHSCORE" },
- "CamelRedis.Latitude": { "index": 26, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
latitude of the member that GEOADD adds, and of the center of the area that
GEORADIUS searches.", "constantName":
"org.apache.camel.component.redis.RedisConstants#LATITUDE" },
- "CamelRedis.Longitude": { "index": 27, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
longitude of the member that GEOADD adds, and of the center of the area that
GEORADIUS searches.", "constantName":
"org.apache.camel.component.redis.RedisConstants#LONGITUDE" },
- "CamelRedis.Radius": { "index": 28, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
radius in meters of the area that GEORADIUS and GEORADIUSBYMEMBER search.",
"constantName": "org.apache.camel.component.redis.RedisConstants#RADIUS" }
+ "CamelRedis.Db": { "index": 20, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "The index of the database that MOVE moves the key to.",
"constantName": "org.apache.camel.component.redis.RedisConstants#DB" },
+ "CamelRedis.Score": { "index": 21, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The score of the member that ZADD adds.", "constantName":
"org.apache.camel.component.redis.RedisConstants#SCORE" },
+ "CamelRedis.Min": { "index": 22, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The minimum score, inclusive, for ZCOUNT, ZRANGEBYSCORE,
ZREVRANGEBYSCORE and ZREMRANGEBYSCORE.", "constantName":
"org.apache.camel.component.redis.RedisConstants#MIN" },
+ "CamelRedis.Max": { "index": 23, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The maximum score, inclusive, for ZCOUNT, ZRANGEBYSCORE,
ZREVRANGEBYSCORE and ZREMRANGEBYSCORE.", "constantName":
"org.apache.camel.component.redis.RedisConstants#MAX" },
+ "CamelRedis.Increment": { "index": 24, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The amount that ZINCRBY adds to the score of the member.",
"constantName": "org.apache.camel.component.redis.RedisConstants#INCREMENT" },
+ "CamelRedis.WithScore": { "index": 25, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Boolean", "deprecated": false, "autowired": false, "secret": false,
"description": "Whether ZRANGE and ZREVRANGE return the members together with
their scores, as a Set of ZSetOperations.TypedTuple. If not set or false, they
return the members only.", "constantName":
"org.apache.camel.component.redis.RedisConstants#WITHSCORE" },
+ "CamelRedis.Latitude": { "index": 26, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The latitude of the member that GEOADD adds, and of the center
of the area that GEORADIUS searches.", "constantName":
"org.apache.camel.component.redis.RedisConstants#LATITUDE" },
+ "CamelRedis.Longitude": { "index": 27, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The longitude of the member that GEOADD adds, and of the center
of the area that GEORADIUS searches.", "constantName":
"org.apache.camel.component.redis.RedisConstants#LONGITUDE" },
+ "CamelRedis.Radius": { "index": 28, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The radius in meters of the area that GEORADIUS and
GEORADIUSBYMEMBER search.", "constantName":
"org.apache.camel.component.redis.RedisConstants#RADIUS" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "unknown" ], "description": "The message as
the serializer reads it: with the default JDK serializer the Java object the
publisher serialized, such as the String a PUBLISH of this component sent, with
the channel in the CamelRedis.Channel header. A message the serializer cannot
read, such as text from redis-cli, is given as its raw bytes: set a
StringRedisSerializer as the serializer to receive text" },
@@ -66,17 +66,17 @@
"producerOut": { "carriers": [ "unchanged" ], "dependsOn": [ "command" ],
"byOption": [ { "option": "command", "value": "SET", "carriers": [ "unchanged"
] }, { "option": "command", "value": "SETEX", "carriers": [ "unchanged" ] }, {
"option": "command", "value": "MSET", "carriers": [ "unchanged" ] }, {
"option": "command", "value": "HSET", "carriers": [ "unchanged" ] }, {
"option": "command", "value": "HMSET", "carriers": [ "unchanged" ] }, {
"option": "command", "value": "HDEL", "car [...]
},
"properties": {
- "host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "The host name or IP
address of the Redis server. The endpoint connects to it with the
JedisConnectionFactory that it creates when connect [...]
- "port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"common", "label": "", "required": true, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "The port of the Redis
server. The endpoint connects to it with the JedisConnectionFactory that it
creates when connectionFactory is not [...]
- "channels": { "index": 2, "kind": "parameter", "displayName": "Channels",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The channels that the consumer subscribes to,
separated by comma. With the PSUBSCRIBE command they are patterns, such as ne
[...]
- "command": { "index": 3, "kind": "parameter", "displayName": "Command",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.redis.Command", "enum": [ "PING", "SET", "GET",
"QUIT", "EXISTS", "DEL", "TYPE", "FLUSHDB", "KEYS", "RANDOMKEY", "RENAME",
"RENAMENX", "RENAMEX", "DBSIZE", "EXPIRE", "EXPIREAT", "TTL", "SELECT", "MOVE",
"FLUSHALL", "GETSET", "MGET", "SETNX", "SETEX", "MSET", "MSETNX", "DECRBY",
"DECR", "INCRBY", "INCR", "APP [...]
- "connectionFactory": { "index": 4, "kind": "parameter", "displayName":
"Connection Factory", "group": "common", "label": "", "required": false,
"type": "object", "javaType":
"org.springframework.data.redis.connection.RedisConnectionFactory",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The
org.springframework.data.redis.connection.RedisConne [...]
- "redisTemplate": { "index": 5, "kind": "parameter", "displayName": "Redis
Template", "group": "common", "label": "", "required": false, "type": "object",
"javaType":
"org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object>", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "The
org.springframework.data.redis.core.Red [...]
- "serializer": { "index": 6, "kind": "parameter", "displayName":
"Serializer", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.springframework.data.redis.serializer.RedisSerializer<java.lang.Object>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The
org.springframework.data.redis.serializer.RedisSerialize [...]
- "bridgeErrorHandler": { "index": 7, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
- "exceptionHandler": { "index": 8, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
- "exchangePattern": { "index": 9, "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." },
- "listenerContainer": { "index": 10, "kind": "parameter", "displayName":
"Listener Container", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.springframework.data.redis.listener.RedisMessageListenerContainer",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The org.springframew [...]
+ "host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "localhost", "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The host name or IP address of the Redis
server. The endpoint connects to it with the JedisConnectionFactory [...]
+ "port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"common", "label": "", "required": true, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 6379, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The port of the Redis server. The endpoint
connects to it with the JedisConnectionFactory that it creates when co [...]
+ "command": { "index": 2, "kind": "parameter", "displayName": "Command",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.redis.Command", "enum": [ "PING", "SET", "GET",
"QUIT", "EXISTS", "DEL", "TYPE", "FLUSHDB", "KEYS", "RANDOMKEY", "RENAME",
"RENAMENX", "RENAMEX", "DBSIZE", "EXPIRE", "EXPIREAT", "TTL", "SELECT", "MOVE",
"FLUSHALL", "GETSET", "MGET", "SETNX", "SETEX", "MSET", "MSETNX", "DECRBY",
"DECR", "INCRBY", "INCR", "APP [...]
+ "connectionFactory": { "index": 3, "kind": "parameter", "displayName":
"Connection Factory", "group": "common", "label": "", "required": false,
"type": "object", "javaType":
"org.springframework.data.redis.connection.RedisConnectionFactory",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The
org.springframework.data.redis.connection.RedisConne [...]
+ "serializer": { "index": 4, "kind": "parameter", "displayName":
"Serializer", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.springframework.data.redis.serializer.RedisSerializer<java.lang.Object>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The
org.springframework.data.redis.serializer.RedisSerialize [...]
+ "channels": { "index": 5, "kind": "parameter", "displayName": "Channels",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The channels that the consumer subscribes to,
separated by comma. With the PSUBSCRIBE command they are patterns, [...]
+ "bridgeErrorHandler": { "index": 6, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
+ "exceptionHandler": { "index": 7, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
+ "exchangePattern": { "index": 8, "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." },
+ "listenerContainer": { "index": 9, "kind": "parameter", "displayName":
"Listener Container", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.springframework.data.redis.listener.RedisMessageListenerContainer",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The org.springframewo [...]
+ "redisTemplate": { "index": 10, "kind": "parameter", "displayName": "Redis
Template", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType":
"org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object>", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "The
org.springframework.data.red [...]
"lazyStartProducer": { "index": 11, "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 [...]
"deserializationFilter": { "index": 12, "kind": "parameter",
"displayName": "Deserialization Filter", "group": "security", "label":
"advanced,security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "An ObjectInputFilter
pattern, in jdk.serialFilter syntax, that the default J [...]
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/spring-redis-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/spring-redis-component.adoc
index 63ae71a53aad..07dc9493dbab 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/spring-redis-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/spring-redis-component.adoc
@@ -340,7 +340,8 @@ from high to low |`RedisConstants.KEY`/"CamelRedis.Key"
(String), `RedisConstant
|`ZREMRANGEBYRANK` |Remove all members in a sorted set within the given
indexes |`RedisConstants.KEY`/"CamelRedis.Key" (String),
`RedisConstants.START`/"CamelRedis.Start"Long),
`RedisConstants.END`/"CamelRedis.End" (Long) |void
-|`ZREMRANGEBYSCORE` |Remove all members in a sorted set within the given
scores |`RedisConstants.KEY`/"CamelRedis.Key" (String),
`RedisConstants.START`/"CamelRedis.Start"Long),
`RedisConstants.END`/"CamelRedis.End" (Long) |void
+|`ZREMRANGEBYSCORE` |Remove all members in a sorted set within the given
scores |`RedisConstants.KEY`/"CamelRedis.Key" (String),
`RedisConstants.MIN`/"CamelRedis.Min" (Double),
`RedisConstants.MAX`/"CamelRedis.Max"
+(Double). When `CamelRedis.Min` or `CamelRedis.Max` is not set,
`CamelRedis.Start` or `CamelRedis.End` is used instead. |void
|`ZUNIONSTORE` |Add multiple sorted sets and store the resulting-sorted set in
a new key |`RedisConstants.KEY`/"CamelRedis.Key" (String),
`RedisConstants.KEYS`/"CamelRedis.Keys" (Collection<String> or String),
`RedisConstants.DESTINATION`/"CamelRedis.Destination" (String) |void
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/generated/java/org/apache/camel/component/redis/RedisEndpointUriFactory.java
b/components/camel-spring-parent/camel-spring-redis/src/generated/java/org/apache/camel/component/redis/RedisEndpointUriFactory.java
index cacdfc07fc83..23b8a1fa9cf6 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/generated/java/org/apache/camel/component/redis/RedisEndpointUriFactory.java
+++
b/components/camel-spring-parent/camel-spring-redis/src/generated/java/org/apache/camel/component/redis/RedisEndpointUriFactory.java
@@ -56,8 +56,8 @@ public class RedisEndpointUriFactory extends
org.apache.camel.support.component.
Map<String, Object> copy = copyParameters(properties);
- uri = buildPathParameter(syntax, uri, "host", null, true, copy);
- uri = buildPathParameter(syntax, uri, "port", null, true, copy);
+ uri = buildPathParameter(syntax, uri, "host", "localhost", true, copy);
+ uri = buildPathParameter(syntax, uri, "port", 6379, true, copy);
uri = buildQueryParameters(uri, copy, encode);
return uri;
}
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/generated/resources/META-INF/org/apache/camel/component/redis/spring-redis.json
b/components/camel-spring-parent/camel-spring-redis/src/generated/resources/META-INF/org/apache/camel/component/redis/spring-redis.json
index dc66d6f28daa..12cd57d6964f 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/generated/resources/META-INF/org/apache/camel/component/redis/spring-redis.json
+++
b/components/camel-spring-parent/camel-spring-redis/src/generated/resources/META-INF/org/apache/camel/component/redis/spring-redis.json
@@ -31,34 +31,34 @@
},
"headers": {
"CamelRedis.Command": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the Redis command that the producer runs, such as
GET or HSET, in any case. Replaces the command option for this message.",
"constantName": "org.apache.camel.component.redis.RedisConstants#COMMAND" },
- "CamelRedis.Key": { "index": 1, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key that the command works on, used by most commands, such as GET, SET, HSET,
LPUSH, SADD and ZADD. For SDIFF, SINTER, SUNION, their STORE forms, ZINTERSTORE
and ZUNIONSTORE, the first key, which is combined with the keys of the
CamelRedis.Keys header.", "constantName [...]
- "CamelRedis.Keys": { "index": 2, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType":
"Collection<String> or String", "deprecated": false, "autowired": false,
"secret": false, "description": "The keys to delete for DEL and to watch for
WATCH, and for SDIFF, SINTER, SUNION, their STORE forms, ZINTERSTORE and
ZUNIONSTORE the keys that are combined with the key of the CamelRedis.Key
header. A collection of keys, or a String with one key or [...]
- "CamelRedis.Field": { "index": 3, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
field of the hash for HDEL, HEXISTS, HGET, HINCRBY, HSET and HSETNX.",
"constantName": "org.apache.camel.component.redis.RedisConstants#FIELD" },
- "CamelRedis.Fields": { "index": 4, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType":
"Collection<String>", "deprecated": false, "autowired": false, "secret": false,
"description": "The fields of the hash to read for HMGET, and the keys to read
for MGET.", "constantName":
"org.apache.camel.component.redis.RedisConstants#FIELDS" },
- "CamelRedis.Value": { "index": 5, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Object",
"deprecated": false, "autowired": false, "secret": false, "description": "The
value for the commands that store, add or look up one value or member, such as
SET, SETNX, GETSET, HSET, LPUSH, SADD, SISMEMBER, ZADD and GEOADD. It is a Long
for INCRBY, DECRBY and HINCRBY, a Boolean for SETBIT, the new name of the key
for RENAME and RENAMENX, and [...]
- "CamelRedis.Values": { "index": 6, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Map<String,
Object> or Collection<Object>", "deprecated": false, "autowired": false,
"secret": false, "description": "A Map of keys to values for MSET and MSETNX,
and of fields to values for HMSET. For GEODIST, a Collection whose first two
elements are the members to measure the distance between.", "constantName":
"org.apache.camel.component.redis.Re [...]
- "CamelRedis.Start": { "index": 7, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the first element for LRANGE, LTRIM, ZRANGE, ZREVRANGE and
ZREMRANGEBYRANK, the offset of the first byte for GETRANGE, and the minimum
score for ZREMRANGEBYSCORE. Indexes start at 0, and a negative index counts
from the end.", "constantName": "org.apache.came [...]
- "CamelRedis.End": { "index": 8, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the last element, inclusive, for LRANGE, LTRIM, ZRANGE, ZREVRANGE and
ZREMRANGEBYRANK, the offset of the last byte for GETRANGE, and the maximum
score for ZREMRANGEBYSCORE. Indexes start at 0, and a negative index counts
from the end, so -1 is the last element. [...]
- "CamelRedis.Timeout": { "index": 9, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
time to live of the key in seconds for EXPIRE and SETEX, and in milliseconds
for PEXPIRE. For BLPOP, BRPOP and BRPOPLPUSH, how many seconds to wait for an
element while the list is empty.", "constantName":
"org.apache.camel.component.redis.RedisConstants#TIMEOUT" },
- "CamelRedis.Offset": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
offset of the bit for GETBIT and SETBIT, and the offset in bytes where SETRANGE
writes the value.", "constantName":
"org.apache.camel.component.redis.RedisConstants#OFFSET" },
- "CamelRedis.Destination": { "index": 11, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key that receives the result for RPOPLPUSH, BRPOPLPUSH, SMOVE, SDIFFSTORE,
SINTERSTORE, SUNIONSTORE, ZINTERSTORE and ZUNIONSTORE.", "constantName":
"org.apache.camel.component.redis.RedisConstants#DESTINATION" },
- "CamelRedis.Channel": { "index": 12, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "byte[] or
String", "deprecated": false, "autowired": false, "secret": false,
"description": "The channel that PUBLISH posts the message to. The consumer
sets it to the name of the channel that the message was received on.",
"constantName": "org.apache.camel.component.redis.RedisConstants#CHANNEL" },
- "CamelRedis.Message": { "index": 13, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Object",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message that PUBLISH posts to the channel of the CamelRedis.Channel header. The
serializer of the RedisTemplate writes it, so with the default JDK serializer
it must be Serializable.", "constantName":
"org.apache.camel.component.redis.RedisConstants#MESSAGE" },
- "CamelRedis.Index": { "index": 14, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the element of the list for LINDEX and LSET. Indexes start at 0, and a
negative index counts from the end, so -1 is the last element.",
"constantName": "org.apache.camel.component.redis.RedisConstants#INDEX" },
- "CamelRedis.Position": { "index": 15, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "Where
LINSERT inserts the value: BEFORE or AFTER the pivot, in upper case.",
"constantName": "org.apache.camel.component.redis.RedisConstants#POSITION" },
- "CamelRedis.Pivot": { "index": 16, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
element of the list that LINSERT inserts the value before or after.",
"constantName": "org.apache.camel.component.redis.RedisConstants#PIVOT" },
- "CamelRedis.Count": { "index": 17, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "For
LREM, how many elements equal to the value to remove: a positive count removes
from the head, a negative count from the tail, and 0 removes all of them. For
GEORADIUS and GEORADIUSBYMEMBER, the maximum number of members to return; if
not set, all of them are returned [...]
- "CamelRedis.Timestamp": { "index": 18, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
time when the key expires, in seconds since the epoch for EXPIREAT and in
milliseconds since the epoch for PEXPIREAT.", "constantName":
"org.apache.camel.component.redis.RedisConstants#TIMESTAMP" },
+ "CamelRedis.Key": { "index": 1, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The key that the command works on, used by most commands, such
as GET, SET, HSET, LPUSH, SADD and ZADD. For SDIFF, SINTER, SUNION, their STORE
forms, ZINTERSTORE and ZUNIONSTORE, the first key, which is combined with the
keys of the CamelRedis.Keys header.", "co [...]
+ "CamelRedis.Keys": { "index": 2, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Collection<String> or String", "deprecated": false, "autowired": false,
"secret": false, "description": "The keys to delete for DEL and to watch for
WATCH, and for SDIFF, SINTER, SUNION, their STORE forms, ZINTERSTORE and
ZUNIONSTORE the keys that are combined with the key of the CamelRedis.Key
header. A collection of keys, or a String with o [...]
+ "CamelRedis.Field": { "index": 3, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field of the hash for HDEL, HEXISTS, HGET, HINCRBY, HSET
and HSETNX.", "constantName":
"org.apache.camel.component.redis.RedisConstants#FIELD" },
+ "CamelRedis.Fields": { "index": 4, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Collection<String>", "deprecated": false, "autowired": false, "secret": false,
"description": "The fields of the hash to read for HMGET, and the keys to read
for MGET.", "constantName":
"org.apache.camel.component.redis.RedisConstants#FIELDS" },
+ "CamelRedis.Value": { "index": 5, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Object", "deprecated": false, "autowired": false, "secret": false,
"description": "The value for the commands that store, add or look up one value
or member, such as SET, SETNX, GETSET, HSET, LPUSH, SADD, SISMEMBER, ZADD and
GEOADD. It is a Long for INCRBY, DECRBY and HINCRBY, a Boolean for SETBIT, the
new name of the key for RENAME and RENA [...]
+ "CamelRedis.Values": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Map<String, Object> or Collection<Object>", "deprecated": false, "autowired":
false, "secret": false, "description": "A Map of keys to values for MSET and
MSETNX, and of fields to values for HMSET. For GEODIST, a Collection whose
first two elements are the members to measure the distance between.",
"constantName": "org.apache.camel.componen [...]
+ "CamelRedis.Start": { "index": 7, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The index of the first element for LRANGE, LTRIM, ZRANGE,
ZREVRANGE and ZREMRANGEBYRANK, the offset of the first byte for GETRANGE, and
the minimum score for ZREMRANGEBYSCORE when CamelRedis.Min is not set. Indexes
start at 0, and a negative index counts from th [...]
+ "CamelRedis.End": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The index of the last element, inclusive, for LRANGE, LTRIM,
ZRANGE, ZREVRANGE and ZREMRANGEBYRANK, the offset of the last byte for
GETRANGE, and the maximum score for ZREMRANGEBYSCORE when CamelRedis.Max is not
set. Indexes start at 0, and a negative index counts [...]
+ "CamelRedis.Timeout": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The time to live of the key in seconds for EXPIRE and SETEX,
and in milliseconds for PEXPIRE. For BLPOP, BRPOP and BRPOPLPUSH, how many
seconds to wait for an element while the list is empty.", "constantName":
"org.apache.camel.component.redis.RedisConstants#T [...]
+ "CamelRedis.Offset": { "index": 10, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The offset of the bit for GETBIT and SETBIT, and the offset in
bytes where SETRANGE writes the value.", "constantName":
"org.apache.camel.component.redis.RedisConstants#OFFSET" },
+ "CamelRedis.Destination": { "index": 11, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The key that receives the result for RPOPLPUSH, BRPOPLPUSH,
SMOVE, SDIFFSTORE, SINTERSTORE, SUNIONSTORE, ZINTERSTORE and ZUNIONSTORE.",
"constantName": "org.apache.camel.component.redis.RedisConstants#DESTINATION" },
+ "CamelRedis.Channel": { "index": 12, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
channel that PUBLISH posts the message to. The consumer sets it to the name of
the channel that the message was received on.", "constantName":
"org.apache.camel.component.redis.RedisConstants#CHANNEL" },
+ "CamelRedis.Message": { "index": 13, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Object", "deprecated": false, "autowired": false, "secret": false,
"description": "The message that PUBLISH posts to the channel of the
CamelRedis.Channel header. The serializer of the RedisTemplate writes it, so
with the default JDK serializer it must be Serializable.", "constantName":
"org.apache.camel.component.redis.RedisConstants#MES [...]
+ "CamelRedis.Index": { "index": 14, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The index of the element of the list for LINDEX and LSET.
Indexes start at 0, and a negative index counts from the end, so -1 is the last
element.", "constantName":
"org.apache.camel.component.redis.RedisConstants#INDEX" },
+ "CamelRedis.Position": { "index": 15, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "Where LINSERT inserts the value: BEFORE or AFTER the pivot, in
upper case.", "constantName":
"org.apache.camel.component.redis.RedisConstants#POSITION" },
+ "CamelRedis.Pivot": { "index": 16, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The element of the list that LINSERT inserts the value before
or after.", "constantName":
"org.apache.camel.component.redis.RedisConstants#PIVOT" },
+ "CamelRedis.Count": { "index": 17, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "For LREM, how many elements equal to the value to remove: a
positive count removes from the head, a negative count from the tail, and 0
removes all of them. For GEORADIUS and GEORADIUSBYMEMBER, the maximum number of
members to return; if not set, all of them ar [...]
+ "CamelRedis.Timestamp": { "index": 18, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The time when the key expires, in seconds since the epoch for
EXPIREAT and in milliseconds since the epoch for PEXPIREAT.", "constantName":
"org.apache.camel.component.redis.RedisConstants#TIMESTAMP" },
"CamelRedis.Pattern": { "index": 19, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "byte[] or
String", "deprecated": false, "autowired": false, "secret": false,
"description": "The glob-style pattern of the keys that KEYS returns, such as
user:*. With the PSUBSCRIBE command, the consumer sets it, as a byte array, to
the pattern of the channels option that the channel of the message matched.",
"constantName": "org.apache.camel.comp [...]
- "CamelRedis.Db": { "index": 20, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the database that MOVE moves the key to.", "constantName":
"org.apache.camel.component.redis.RedisConstants#DB" },
- "CamelRedis.Score": { "index": 21, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
score of the member that ZADD adds.", "constantName":
"org.apache.camel.component.redis.RedisConstants#SCORE" },
- "CamelRedis.Min": { "index": 22, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
minimum score, inclusive, for ZCOUNT, ZRANGEBYSCORE and ZREVRANGEBYSCORE.",
"constantName": "org.apache.camel.component.redis.RedisConstants#MIN" },
- "CamelRedis.Max": { "index": 23, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
maximum score, inclusive, for ZCOUNT, ZRANGEBYSCORE and ZREVRANGEBYSCORE.",
"constantName": "org.apache.camel.component.redis.RedisConstants#MAX" },
- "CamelRedis.Increment": { "index": 24, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
amount that ZINCRBY adds to the score of the member.", "constantName":
"org.apache.camel.component.redis.RedisConstants#INCREMENT" },
- "CamelRedis.WithScore": { "index": 25, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Boolean",
"deprecated": false, "autowired": false, "secret": false, "description":
"Whether ZRANGE and ZREVRANGE return the members together with their scores, as
a Set of ZSetOperations.TypedTuple. If not set or false, they return the
members only.", "constantName":
"org.apache.camel.component.redis.RedisConstants#WITHSCORE" },
- "CamelRedis.Latitude": { "index": 26, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
latitude of the member that GEOADD adds, and of the center of the area that
GEORADIUS searches.", "constantName":
"org.apache.camel.component.redis.RedisConstants#LATITUDE" },
- "CamelRedis.Longitude": { "index": 27, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
longitude of the member that GEOADD adds, and of the center of the area that
GEORADIUS searches.", "constantName":
"org.apache.camel.component.redis.RedisConstants#LONGITUDE" },
- "CamelRedis.Radius": { "index": 28, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "Double",
"deprecated": false, "autowired": false, "secret": false, "description": "The
radius in meters of the area that GEORADIUS and GEORADIUSBYMEMBER search.",
"constantName": "org.apache.camel.component.redis.RedisConstants#RADIUS" }
+ "CamelRedis.Db": { "index": 20, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "The index of the database that MOVE moves the key to.",
"constantName": "org.apache.camel.component.redis.RedisConstants#DB" },
+ "CamelRedis.Score": { "index": 21, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The score of the member that ZADD adds.", "constantName":
"org.apache.camel.component.redis.RedisConstants#SCORE" },
+ "CamelRedis.Min": { "index": 22, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The minimum score, inclusive, for ZCOUNT, ZRANGEBYSCORE,
ZREVRANGEBYSCORE and ZREMRANGEBYSCORE.", "constantName":
"org.apache.camel.component.redis.RedisConstants#MIN" },
+ "CamelRedis.Max": { "index": 23, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The maximum score, inclusive, for ZCOUNT, ZRANGEBYSCORE,
ZREVRANGEBYSCORE and ZREMRANGEBYSCORE.", "constantName":
"org.apache.camel.component.redis.RedisConstants#MAX" },
+ "CamelRedis.Increment": { "index": 24, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The amount that ZINCRBY adds to the score of the member.",
"constantName": "org.apache.camel.component.redis.RedisConstants#INCREMENT" },
+ "CamelRedis.WithScore": { "index": 25, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Boolean", "deprecated": false, "autowired": false, "secret": false,
"description": "Whether ZRANGE and ZREVRANGE return the members together with
their scores, as a Set of ZSetOperations.TypedTuple. If not set or false, they
return the members only.", "constantName":
"org.apache.camel.component.redis.RedisConstants#WITHSCORE" },
+ "CamelRedis.Latitude": { "index": 26, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The latitude of the member that GEOADD adds, and of the center
of the area that GEORADIUS searches.", "constantName":
"org.apache.camel.component.redis.RedisConstants#LATITUDE" },
+ "CamelRedis.Longitude": { "index": 27, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The longitude of the member that GEOADD adds, and of the center
of the area that GEORADIUS searches.", "constantName":
"org.apache.camel.component.redis.RedisConstants#LONGITUDE" },
+ "CamelRedis.Radius": { "index": 28, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Double", "deprecated": false, "autowired": false, "secret": false,
"description": "The radius in meters of the area that GEORADIUS and
GEORADIUSBYMEMBER search.", "constantName":
"org.apache.camel.component.redis.RedisConstants#RADIUS" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "unknown" ], "description": "The message as
the serializer reads it: with the default JDK serializer the Java object the
publisher serialized, such as the String a PUBLISH of this component sent, with
the channel in the CamelRedis.Channel header. A message the serializer cannot
read, such as text from redis-cli, is given as its raw bytes: set a
StringRedisSerializer as the serializer to receive text" },
@@ -66,17 +66,17 @@
"producerOut": { "carriers": [ "unchanged" ], "dependsOn": [ "command" ],
"byOption": [ { "option": "command", "value": "SET", "carriers": [ "unchanged"
] }, { "option": "command", "value": "SETEX", "carriers": [ "unchanged" ] }, {
"option": "command", "value": "MSET", "carriers": [ "unchanged" ] }, {
"option": "command", "value": "HSET", "carriers": [ "unchanged" ] }, {
"option": "command", "value": "HMSET", "carriers": [ "unchanged" ] }, {
"option": "command", "value": "HDEL", "car [...]
},
"properties": {
- "host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "The host name or IP
address of the Redis server. The endpoint connects to it with the
JedisConnectionFactory that it creates when connect [...]
- "port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"common", "label": "", "required": true, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "The port of the Redis
server. The endpoint connects to it with the JedisConnectionFactory that it
creates when connectionFactory is not [...]
- "channels": { "index": 2, "kind": "parameter", "displayName": "Channels",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The channels that the consumer subscribes to,
separated by comma. With the PSUBSCRIBE command they are patterns, such as ne
[...]
- "command": { "index": 3, "kind": "parameter", "displayName": "Command",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.redis.Command", "enum": [ "PING", "SET", "GET",
"QUIT", "EXISTS", "DEL", "TYPE", "FLUSHDB", "KEYS", "RANDOMKEY", "RENAME",
"RENAMENX", "RENAMEX", "DBSIZE", "EXPIRE", "EXPIREAT", "TTL", "SELECT", "MOVE",
"FLUSHALL", "GETSET", "MGET", "SETNX", "SETEX", "MSET", "MSETNX", "DECRBY",
"DECR", "INCRBY", "INCR", "APP [...]
- "connectionFactory": { "index": 4, "kind": "parameter", "displayName":
"Connection Factory", "group": "common", "label": "", "required": false,
"type": "object", "javaType":
"org.springframework.data.redis.connection.RedisConnectionFactory",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The
org.springframework.data.redis.connection.RedisConne [...]
- "redisTemplate": { "index": 5, "kind": "parameter", "displayName": "Redis
Template", "group": "common", "label": "", "required": false, "type": "object",
"javaType":
"org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object>", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "The
org.springframework.data.redis.core.Red [...]
- "serializer": { "index": 6, "kind": "parameter", "displayName":
"Serializer", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.springframework.data.redis.serializer.RedisSerializer<java.lang.Object>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The
org.springframework.data.redis.serializer.RedisSerialize [...]
- "bridgeErrorHandler": { "index": 7, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
- "exceptionHandler": { "index": 8, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
- "exchangePattern": { "index": 9, "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." },
- "listenerContainer": { "index": 10, "kind": "parameter", "displayName":
"Listener Container", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.springframework.data.redis.listener.RedisMessageListenerContainer",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The org.springframew [...]
+ "host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "localhost", "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The host name or IP address of the Redis
server. The endpoint connects to it with the JedisConnectionFactory [...]
+ "port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"common", "label": "", "required": true, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 6379, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The port of the Redis server. The endpoint
connects to it with the JedisConnectionFactory that it creates when co [...]
+ "command": { "index": 2, "kind": "parameter", "displayName": "Command",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.redis.Command", "enum": [ "PING", "SET", "GET",
"QUIT", "EXISTS", "DEL", "TYPE", "FLUSHDB", "KEYS", "RANDOMKEY", "RENAME",
"RENAMENX", "RENAMEX", "DBSIZE", "EXPIRE", "EXPIREAT", "TTL", "SELECT", "MOVE",
"FLUSHALL", "GETSET", "MGET", "SETNX", "SETEX", "MSET", "MSETNX", "DECRBY",
"DECR", "INCRBY", "INCR", "APP [...]
+ "connectionFactory": { "index": 3, "kind": "parameter", "displayName":
"Connection Factory", "group": "common", "label": "", "required": false,
"type": "object", "javaType":
"org.springframework.data.redis.connection.RedisConnectionFactory",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The
org.springframework.data.redis.connection.RedisConne [...]
+ "serializer": { "index": 4, "kind": "parameter", "displayName":
"Serializer", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.springframework.data.redis.serializer.RedisSerializer<java.lang.Object>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The
org.springframework.data.redis.serializer.RedisSerialize [...]
+ "channels": { "index": 5, "kind": "parameter", "displayName": "Channels",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The channels that the consumer subscribes to,
separated by comma. With the PSUBSCRIBE command they are patterns, [...]
+ "bridgeErrorHandler": { "index": 6, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
+ "exceptionHandler": { "index": 7, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
+ "exchangePattern": { "index": 8, "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." },
+ "listenerContainer": { "index": 9, "kind": "parameter", "displayName":
"Listener Container", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.springframework.data.redis.listener.RedisMessageListenerContainer",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.redis.RedisConfiguration", "configurationField":
"configuration", "description": "The org.springframewo [...]
+ "redisTemplate": { "index": 10, "kind": "parameter", "displayName": "Redis
Template", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType":
"org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object>", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "The
org.springframework.data.red [...]
"lazyStartProducer": { "index": 11, "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 [...]
"deserializationFilter": { "index": 12, "kind": "parameter",
"displayName": "Deserialization Filter", "group": "security", "label":
"advanced,security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.redis.RedisConfiguration",
"configurationField": "configuration", "description": "An ObjectInputFilter
pattern, in jdk.serialFilter syntax, that the default J [...]
}
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/main/docs/spring-redis-component.adoc
b/components/camel-spring-parent/camel-spring-redis/src/main/docs/spring-redis-component.adoc
index 63ae71a53aad..07dc9493dbab 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/main/docs/spring-redis-component.adoc
+++
b/components/camel-spring-parent/camel-spring-redis/src/main/docs/spring-redis-component.adoc
@@ -340,7 +340,8 @@ from high to low |`RedisConstants.KEY`/"CamelRedis.Key"
(String), `RedisConstant
|`ZREMRANGEBYRANK` |Remove all members in a sorted set within the given
indexes |`RedisConstants.KEY`/"CamelRedis.Key" (String),
`RedisConstants.START`/"CamelRedis.Start"Long),
`RedisConstants.END`/"CamelRedis.End" (Long) |void
-|`ZREMRANGEBYSCORE` |Remove all members in a sorted set within the given
scores |`RedisConstants.KEY`/"CamelRedis.Key" (String),
`RedisConstants.START`/"CamelRedis.Start"Long),
`RedisConstants.END`/"CamelRedis.End" (Long) |void
+|`ZREMRANGEBYSCORE` |Remove all members in a sorted set within the given
scores |`RedisConstants.KEY`/"CamelRedis.Key" (String),
`RedisConstants.MIN`/"CamelRedis.Min" (Double),
`RedisConstants.MAX`/"CamelRedis.Max"
+(Double). When `CamelRedis.Min` or `CamelRedis.Max` is not set,
`CamelRedis.Start` or `CamelRedis.End` is used instead. |void
|`ZUNIONSTORE` |Add multiple sorted sets and store the resulting-sorted set in
a new key |`RedisConstants.KEY`/"CamelRedis.Key" (String),
`RedisConstants.KEYS`/"CamelRedis.Keys" (Collection<String> or String),
`RedisConstants.DESTINATION`/"CamelRedis.Destination" (String) |void
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/ExchangeConverter.java
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/ExchangeConverter.java
index a48d77414d4f..e9ca53b83aef 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/ExchangeConverter.java
+++
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/ExchangeConverter.java
@@ -148,6 +148,22 @@ public class ExchangeConverter {
return getInHeaderValue(exchange, RedisConstants.MAX, Double.class);
}
+ /**
+ * The minimum score for ZREMRANGEBYSCORE: the Min header, or the Start
header that this command used to read.
+ */
+ Double getMinOrStart(Exchange exchange) {
+ Double min = getMin(exchange);
+ return min != null ? min : getInHeaderValue(exchange,
RedisConstants.START, Double.class);
+ }
+
+ /**
+ * The maximum score for ZREMRANGEBYSCORE: the Max header, or the End
header that this command used to read.
+ */
+ Double getMaxOrEnd(Exchange exchange) {
+ Double max = getMax(exchange);
+ return max != null ? max : getInHeaderValue(exchange,
RedisConstants.END, Double.class);
+ }
+
Double getIncrement(Exchange exchange) {
return getInHeaderValue(exchange, RedisConstants.INCREMENT,
Double.class);
}
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisClient.java
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisClient.java
index 04a06abea09a..c02747a5fc00 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisClient.java
+++
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisClient.java
@@ -446,6 +446,10 @@ public class RedisClient {
redisTemplate.opsForZSet().removeRangeByScore(key, start, end);
}
+ public void zremrangebyscore(String key, Double min, Double max) {
+ redisTemplate.opsForZSet().removeRangeByScore(key, min, max);
+ }
+
public Object zrevrange(String key, Long start, Long end, Boolean
withScore) {
if (withScore != null && withScore) {
return redisTemplate.opsForZSet().reverseRangeWithScores(key,
start, end);
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisConfiguration.java
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisConfiguration.java
index dedece9ebb4c..234df32b7147 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisConfiguration.java
+++
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisConfiguration.java
@@ -34,12 +34,14 @@ public class RedisConfiguration {
private boolean managedListenerContainer;
private boolean managedConnectionFactory;
- @UriPath(description = "The host name or IP address of the Redis server.
The endpoint connects to it with the"
+ @UriPath(defaultValue = "localhost",
+ description = "The host name or IP address of the Redis server.
The endpoint connects to it with the"
+ " JedisConnectionFactory that it creates when
connectionFactory is not set, and does not use it"
+ " otherwise. If not set, localhost is used.")
@Metadata(required = true)
private String host;
- @UriPath(description = "The port of the Redis server. The endpoint
connects to it with the JedisConnectionFactory that"
+ @UriPath(defaultValue = "6379",
+ description = "The port of the Redis server. The endpoint
connects to it with the JedisConnectionFactory that"
+ " it creates when connectionFactory is not set,
and does not use it otherwise. If not set, 6379"
+ " is used.")
@Metadata(required = true)
@@ -51,12 +53,14 @@ public class RedisConfiguration {
+ " message with SUBSCRIBE, PSUBSCRIBE or a server
command that it does not run, such as AUTH,"
+ " FLUSHDB, INFO or SELECT.")
private Command command = Command.SET;
- @UriParam(description = "The channels that the consumer subscribes to,
separated by comma. With the PSUBSCRIBE command"
+ @UriParam(label = "consumer",
+ description = "The channels that the consumer subscribes to,
separated by comma. With the PSUBSCRIBE command"
+ " they are patterns, such as news.*, and with
SUBSCRIBE channel names. Required by the"
+ " consumer. The producer does not use it:
PUBLISH takes the channel from the"
+ " CamelRedis.Channel header.")
private String channels;
- @UriParam(description = "The
org.springframework.data.redis.core.RedisTemplate that the producer runs the
commands"
+ @UriParam(label = "producer",
+ description = "The
org.springframework.data.redis.core.RedisTemplate that the producer runs the
commands"
+ " with, which also decides how keys and values
are serialized. If not set, the redisTemplate"
+ " of the component is used, and if that is not
set either, the endpoint creates a"
+ " RedisTemplate from connectionFactory and
serializer. The consumer does not use it.")
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisConstants.java
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisConstants.java
index fca5e342bf36..fc31341a0cbf 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisConstants.java
+++
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisConstants.java
@@ -24,83 +24,100 @@ public interface RedisConstants {
+ " Replaces the command option for this message.",
javaType = "String")
String COMMAND = "CamelRedis.Command";
- @Metadata(description = "The key that the command works on, used by most
commands, such as GET, SET, HSET, LPUSH, SADD"
+ @Metadata(label = "producer",
+ description = "The key that the command works on, used by most
commands, such as GET, SET, HSET, LPUSH, SADD"
+ " and ZADD. For SDIFF, SINTER, SUNION, their
STORE forms, ZINTERSTORE and ZUNIONSTORE, the first"
+ " key, which is combined with the keys of the
CamelRedis.Keys header.",
javaType = "String")
String KEY = "CamelRedis.Key";
- @Metadata(description = "The keys to delete for DEL and to watch for
WATCH, and for SDIFF, SINTER, SUNION, their STORE"
+ @Metadata(label = "producer",
+ description = "The keys to delete for DEL and to watch for
WATCH, and for SDIFF, SINTER, SUNION, their STORE"
+ " forms, ZINTERSTORE and ZUNIONSTORE the keys
that are combined with the key of the"
+ " CamelRedis.Key header. A collection of keys,
or a String with one key or several keys"
+ " separated by comma.",
javaType = "Collection<String> or String")
String KEYS = "CamelRedis.Keys";
- @Metadata(description = "The field of the hash for HDEL, HEXISTS, HGET,
HINCRBY, HSET and HSETNX.",
+ @Metadata(label = "producer",
+ description = "The field of the hash for HDEL, HEXISTS, HGET,
HINCRBY, HSET and HSETNX.",
javaType = "String")
String FIELD = "CamelRedis.Field";
- @Metadata(description = "The fields of the hash to read for HMGET, and the
keys to read for MGET.",
+ @Metadata(label = "producer",
+ description = "The fields of the hash to read for HMGET, and the
keys to read for MGET.",
javaType = "Collection<String>")
String FIELDS = "CamelRedis.Fields";
- @Metadata(description = "The value for the commands that store, add or
look up one value or member, such as SET, SETNX,"
+ @Metadata(label = "producer",
+ description = "The value for the commands that store, add or
look up one value or member, such as SET, SETNX,"
+ " GETSET, HSET, LPUSH, SADD, SISMEMBER, ZADD and
GEOADD. It is a Long for INCRBY, DECRBY and"
+ " HINCRBY, a Boolean for SETBIT, the new name of
the key for RENAME and RENAMENX, and text for"
+ " APPEND and ECHO. The serializer of the
RedisTemplate writes it, so with the default JDK"
+ " serializer it must be Serializable.",
javaType = "Object")
String VALUE = "CamelRedis.Value";
- @Metadata(description = "A Map of keys to values for MSET and MSETNX, and
of fields to values for HMSET. For GEODIST, a"
+ @Metadata(label = "producer",
+ description = "A Map of keys to values for MSET and MSETNX, and
of fields to values for HMSET. For GEODIST, a"
+ " Collection whose first two elements are the
members to measure the distance between.",
javaType = "Map<String, Object> or Collection<Object>")
String VALUES = "CamelRedis.Values";
- @Metadata(description = "The index of the first element for LRANGE, LTRIM,
ZRANGE, ZREVRANGE and ZREMRANGEBYRANK, the"
- + " offset of the first byte for GETRANGE, and the
minimum score for ZREMRANGEBYSCORE. Indexes"
- + " start at 0, and a negative index counts from
the end.",
+ @Metadata(label = "producer",
+ description = "The index of the first element for LRANGE, LTRIM,
ZRANGE, ZREVRANGE and ZREMRANGEBYRANK, the"
+ + " offset of the first byte for GETRANGE, and the
minimum score for ZREMRANGEBYSCORE when"
+ + " CamelRedis.Min is not set. Indexes start at 0,
and a negative index counts from the end.",
javaType = "Long")
String START = "CamelRedis.Start";
- @Metadata(description = "The index of the last element, inclusive, for
LRANGE, LTRIM, ZRANGE, ZREVRANGE and"
+ @Metadata(label = "producer",
+ description = "The index of the last element, inclusive, for
LRANGE, LTRIM, ZRANGE, ZREVRANGE and"
+ " ZREMRANGEBYRANK, the offset of the last byte
for GETRANGE, and the maximum score for"
- + " ZREMRANGEBYSCORE. Indexes start at 0, and a
negative index counts from the end, so -1 is the"
+ + " ZREMRANGEBYSCORE when CamelRedis.Max is not
set. Indexes start at 0, and a negative index counts from the end, so -1 is the"
+ " last element.",
javaType = "Long")
String END = "CamelRedis.End";
- @Metadata(description = "The time to live of the key in seconds for EXPIRE
and SETEX, and in milliseconds for PEXPIRE."
+ @Metadata(label = "producer",
+ description = "The time to live of the key in seconds for EXPIRE
and SETEX, and in milliseconds for PEXPIRE."
+ " For BLPOP, BRPOP and BRPOPLPUSH, how many
seconds to wait for an element while the list is"
+ " empty.",
javaType = "Long")
String TIMEOUT = "CamelRedis.Timeout";
- @Metadata(description = "The offset of the bit for GETBIT and SETBIT, and
the offset in bytes where SETRANGE writes the"
+ @Metadata(label = "producer",
+ description = "The offset of the bit for GETBIT and SETBIT, and
the offset in bytes where SETRANGE writes the"
+ " value.",
javaType = "Long")
String OFFSET = "CamelRedis.Offset";
- @Metadata(description = "The key that receives the result for RPOPLPUSH,
BRPOPLPUSH, SMOVE, SDIFFSTORE, SINTERSTORE,"
+ @Metadata(label = "producer",
+ description = "The key that receives the result for RPOPLPUSH,
BRPOPLPUSH, SMOVE, SDIFFSTORE, SINTERSTORE,"
+ " SUNIONSTORE, ZINTERSTORE and ZUNIONSTORE.",
javaType = "String")
String DESTINATION = "CamelRedis.Destination";
@Metadata(description = "The channel that PUBLISH posts the message to.
The consumer sets it to the name of the channel"
+ " that the message was received on.",
- javaType = "byte[] or String")
+ javaType = "String")
String CHANNEL = "CamelRedis.Channel";
- @Metadata(description = "The message that PUBLISH posts to the channel of
the CamelRedis.Channel header. The serializer"
+ @Metadata(label = "producer",
+ description = "The message that PUBLISH posts to the channel of
the CamelRedis.Channel header. The serializer"
+ " of the RedisTemplate writes it, so with the
default JDK serializer it must be Serializable.",
javaType = "Object")
String MESSAGE = "CamelRedis.Message";
- @Metadata(description = "The index of the element of the list for LINDEX
and LSET. Indexes start at 0, and a negative"
+ @Metadata(label = "producer",
+ description = "The index of the element of the list for LINDEX
and LSET. Indexes start at 0, and a negative"
+ " index counts from the end, so -1 is the last
element.",
javaType = "Long")
String INDEX = "CamelRedis.Index";
- @Metadata(description = "Where LINSERT inserts the value: BEFORE or AFTER
the pivot, in upper case.",
+ @Metadata(label = "producer",
+ description = "Where LINSERT inserts the value: BEFORE or AFTER
the pivot, in upper case.",
javaType = "String")
String POSITION = "CamelRedis.Position";
- @Metadata(description = "The element of the list that LINSERT inserts the
value before or after.",
+ @Metadata(label = "producer",
+ description = "The element of the list that LINSERT inserts the
value before or after.",
javaType = "String")
String PIVOT = "CamelRedis.Pivot";
- @Metadata(description = "For LREM, how many elements equal to the value to
remove: a positive count removes from the"
+ @Metadata(label = "producer",
+ description = "For LREM, how many elements equal to the value to
remove: a positive count removes from the"
+ " head, a negative count from the tail, and 0
removes all of them. For GEORADIUS and"
+ " GEORADIUSBYMEMBER, the maximum number of
members to return; if not set, all of them are"
+ " returned.",
javaType = "Long")
String COUNT = "CamelRedis.Count";
- @Metadata(description = "The time when the key expires, in seconds since
the epoch for EXPIREAT and in milliseconds"
+ @Metadata(label = "producer",
+ description = "The time when the key expires, in seconds since
the epoch for EXPIREAT and in milliseconds"
+ " since the epoch for PEXPIREAT.",
javaType = "Long")
String TIMESTAMP = "CamelRedis.Timestamp";
@@ -109,34 +126,45 @@ public interface RedisConstants {
+ " channel of the message matched.",
javaType = "byte[] or String")
String PATTERN = "CamelRedis.Pattern";
- @Metadata(description = "The index of the database that MOVE moves the key
to.",
+ @Metadata(label = "producer",
+ description = "The index of the database that MOVE moves the key
to.",
javaType = "Integer")
String DB = "CamelRedis.Db";
- @Metadata(description = "The score of the member that ZADD adds.",
+ @Metadata(label = "producer",
+ description = "The score of the member that ZADD adds.",
javaType = "Double")
String SCORE = "CamelRedis.Score";
- @Metadata(description = "The minimum score, inclusive, for ZCOUNT,
ZRANGEBYSCORE and ZREVRANGEBYSCORE.",
+ @Metadata(label = "producer",
+ description = "The minimum score, inclusive, for ZCOUNT,
ZRANGEBYSCORE, ZREVRANGEBYSCORE and"
+ + " ZREMRANGEBYSCORE.",
javaType = "Double")
String MIN = "CamelRedis.Min";
- @Metadata(description = "The maximum score, inclusive, for ZCOUNT,
ZRANGEBYSCORE and ZREVRANGEBYSCORE.",
+ @Metadata(label = "producer",
+ description = "The maximum score, inclusive, for ZCOUNT,
ZRANGEBYSCORE, ZREVRANGEBYSCORE and"
+ + " ZREMRANGEBYSCORE.",
javaType = "Double")
String MAX = "CamelRedis.Max";
- @Metadata(description = "The amount that ZINCRBY adds to the score of the
member.",
+ @Metadata(label = "producer",
+ description = "The amount that ZINCRBY adds to the score of the
member.",
javaType = "Double")
String INCREMENT = "CamelRedis.Increment";
- @Metadata(description = "Whether ZRANGE and ZREVRANGE return the members
together with their scores, as a Set of"
+ @Metadata(label = "producer",
+ description = "Whether ZRANGE and ZREVRANGE return the members
together with their scores, as a Set of"
+ " ZSetOperations.TypedTuple. If not set or
false, they return the members only.",
javaType = "Boolean")
String WITHSCORE = "CamelRedis.WithScore";
- @Metadata(description = "The latitude of the member that GEOADD adds, and
of the center of the area that GEORADIUS"
+ @Metadata(label = "producer",
+ description = "The latitude of the member that GEOADD adds, and
of the center of the area that GEORADIUS"
+ " searches.",
javaType = "Double")
String LATITUDE = "CamelRedis.Latitude";
- @Metadata(description = "The longitude of the member that GEOADD adds, and
of the center of the area that GEORADIUS"
+ @Metadata(label = "producer",
+ description = "The longitude of the member that GEOADD adds, and
of the center of the area that GEORADIUS"
+ " searches.",
javaType = "Double")
String LONGITUDE = "CamelRedis.Longitude";
- @Metadata(description = "The radius in meters of the area that GEORADIUS
and GEORADIUSBYMEMBER search.",
+ @Metadata(label = "producer",
+ description = "The radius in meters of the area that GEORADIUS
and GEORADIUSBYMEMBER search.",
javaType = "Double")
String RADIUS = "CamelRedis.Radius";
}
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisEndpoint.java
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisEndpoint.java
index c1abb1ae1747..92de456dad1c 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisEndpoint.java
+++
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisEndpoint.java
@@ -32,7 +32,7 @@ import org.springframework.data.redis.core.RedisTemplate;
/**
* Send commands to Redis and receive the messages of Redis Pub/Sub channels,
using Spring Data Redis.
*/
-@UriEndpoint(firstVersion = "2.11.0", scheme = "spring-redis", title = "Spring
Redis", syntax = "spring-redist:host:port",
+@UriEndpoint(firstVersion = "2.11.0", scheme = "spring-redis", title = "Spring
Redis", syntax = "spring-redis:host:port",
category = { Category.CACHE }, headersClass =
RedisConstants.class)
@BodyTypes(consumerOut = @BodyType(value = Carrier.UNKNOWN,
description = "The message as the
serializer reads it: with the default JDK serializer the"
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisProducer.java
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisProducer.java
index 0108c54cf2b6..107f7da350cb 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisProducer.java
+++
b/components/camel-spring-parent/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisProducer.java
@@ -524,7 +524,7 @@ public class RedisProducer extends HeaderSelectorProducer {
@InvokeOnHeader("ZREMRANGEBYSCORE")
public void invokeZremrangebyscore(Exchange exchange) {
client.zremrangebyscore(exchangeConverter.getKey(exchange),
- exchangeConverter.getStart(exchange),
exchangeConverter.getEnd(exchange));
+ exchangeConverter.getMinOrStart(exchange),
exchangeConverter.getMaxOrEnd(exchange));
}
@InvokeOnHeader("ZREVRANGE")
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/RedisEndpointUriFactoryTest.java
b/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/RedisEndpointUriFactoryTest.java
new file mode 100644
index 000000000000..99d966b55c00
--- /dev/null
+++
b/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/RedisEndpointUriFactoryTest.java
@@ -0,0 +1,39 @@
+/*
+ * 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.redis;
+
+import java.util.Map;
+
+import org.apache.camel.spi.EndpointUriFactory;
+import org.apache.camel.test.junit6.CamelTestSupport;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+public class RedisEndpointUriFactoryTest extends CamelTestSupport {
+
+ @Test
+ public void shouldUseDefaultHostAndPortWhenBuildingUri() throws Exception {
+ EndpointUriFactory factory =
context.getCamelContextExtension().getEndpointUriFactory("spring-redis");
+
+ assertEquals("spring-redis:localhost:6379?command=GET",
+ factory.buildUri("spring-redis", Map.of("command", "GET"),
false));
+ assertEquals("spring-redis:localhost:6380",
factory.buildUri("spring-redis", Map.of("port", 6380), false));
+ assertEquals("spring-redis:redis.example.com:6379",
+ factory.buildUri("spring-redis", Map.of("host",
"redis.example.com"), false));
+ }
+}
diff --git
a/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/RedisSortedSetTest.java
b/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/RedisSortedSetTest.java
index b3e16b9b35b6..15387355693c 100644
---
a/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/RedisSortedSetTest.java
+++
b/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/RedisSortedSetTest.java
@@ -229,6 +229,30 @@ public class RedisSortedSetTest extends RedisTestSupport {
verify(zSetOperations).removeRangeByScore("key", 1.0, 2.0);
}
+ @Test
+ public void shouldExecuteZREMRANGEBYSCOREWithMinAndMax() {
+ sendHeaders(
+ RedisConstants.COMMAND, "ZREMRANGEBYSCORE",
+ RedisConstants.KEY, "key",
+ RedisConstants.MIN, 1.5,
+ RedisConstants.MAX, 2.5);
+
+ verify(zSetOperations).removeRangeByScore("key", 1.5, 2.5);
+ }
+
+ @Test
+ public void shouldPreferMinAndMaxOverStartAndEndForZREMRANGEBYSCORE() {
+ sendHeaders(
+ RedisConstants.COMMAND, "ZREMRANGEBYSCORE",
+ RedisConstants.KEY, "key",
+ RedisConstants.MIN, 0.5,
+ RedisConstants.MAX, 3.5,
+ RedisConstants.START, 1,
+ RedisConstants.END, 2);
+
+ verify(zSetOperations).removeRangeByScore("key", 0.5, 3.5);
+ }
+
@Test
public void shouldExecuteZREVRANGE() {
Set<String> keys = new HashSet<>();
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 2127f756c034..e28aac45d6df 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
@@ -4027,6 +4027,17 @@ default). It fails with a
`java.util.concurrent.TimeoutException` when RabbitMQ
and with an `org.springframework.amqp.AmqpTimeoutException` when RabbitMQ does
not confirm it within `confirmTimeout`.
Set `confirm=disabled` to send without waiting, as before.
+=== camel-spring-redis - ZREMRANGEBYSCORE takes the score range from
CamelRedis.Min and CamelRedis.Max
+
+The `ZREMRANGEBYSCORE` command now reads the score range from the
`CamelRedis.Min` and `CamelRedis.Max` headers, as a
+`Double`, as `ZCOUNT`, `ZRANGEBYSCORE` and `ZREVRANGEBYSCORE` do. Before, it
read the `CamelRedis.Start` and
+`CamelRedis.End` headers as a `Long`, so a fractional score could not be
given, and a route that set `CamelRedis.Min`
+and `CamelRedis.Max` failed with a `NullPointerException`. When
`CamelRedis.Min` or `CamelRedis.Max` is not set,
+`CamelRedis.Start` or `CamelRedis.End` is used, so existing routes keep
working.
+
+In the Endpoint DSL, `channels` is now an option of the consumer builders
only, and `redisTemplate` of the producer
+builders only, as the producer does not use `channels` and the consumer does
not use `redisTemplate`.
+
=== camel-stream - a scanning consumer keeps going after the stream cannot be
opened or read
A `stream` consumer with `scanStream=true` no longer ends its reading thread
when the stream cannot be opened (for
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 44d18a45ca48..90ab3ecd7c58 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -17213,11 +17213,13 @@ public class StaticEndpointBuilders {
* The host name or IP address of the Redis server. The endpoint connects
to
* it with the JedisConnectionFactory that it creates when
connectionFactory
* is not set, and does not use it otherwise. If not set, localhost is
used.
+ * Default value: localhost
*
* Path parameter: port (required)
* The port of the Redis server. The endpoint connects to it with the
* JedisConnectionFactory that it creates when connectionFactory is not
set,
* and does not use it otherwise. If not set, 6379 is used.
+ * Default value: 6379
*
* @param path host:port
* @return the dsl builder
@@ -17240,11 +17242,13 @@ public class StaticEndpointBuilders {
* The host name or IP address of the Redis server. The endpoint connects
to
* it with the JedisConnectionFactory that it creates when
connectionFactory
* is not set, and does not use it otherwise. If not set, localhost is
used.
+ * Default value: localhost
*
* Path parameter: port (required)
* The port of the Redis server. The endpoint connects to it with the
* JedisConnectionFactory that it creates when connectionFactory is not
set,
* and does not use it otherwise. If not set, 6379 is used.
+ * Default value: 6379
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RedisEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RedisEndpointBuilderFactory.java
index 17d84e4e89da..e1ac7b8c73df 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RedisEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RedisEndpointBuilderFactory.java
@@ -44,24 +44,6 @@ public interface RedisEndpointBuilderFactory {
default AdvancedRedisEndpointConsumerBuilder advanced() {
return (AdvancedRedisEndpointConsumerBuilder) this;
}
- /**
- * The channels that the consumer subscribes to, separated by comma.
- * With the PSUBSCRIBE command they are patterns, such as news.*, and
- * with SUBSCRIBE channel names. Required by the consumer. The producer
- * does not use it: PUBLISH takes the channel from the
- * CamelRedis.Channel header.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param channels the value to set
- * @return the dsl builder
- */
- default RedisEndpointConsumerBuilder channels(String channels) {
- doSetProperty("channels", channels);
- return this;
- }
/**
* The Redis command that the producer runs, such as GET, SET or HSET.
* The CamelRedis.Command header replaces this option for a message.
The
@@ -144,46 +126,6 @@ public interface RedisEndpointBuilderFactory {
doSetProperty("connectionFactory", connectionFactory);
return this;
}
- /**
- * The org.springframework.data.redis.core.RedisTemplate that the
- * producer runs the commands with, which also decides how keys and
- * values are serialized. If not set, the redisTemplate of the
component
- * is used, and if that is not set either, the endpoint creates a
- * RedisTemplate from connectionFactory and serializer. The consumer
- * does not use it.
- *
- * The option is a:
- *
<code>org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object></code> type.
- *
- * Group: common
- *
- * @param redisTemplate the value to set
- * @return the dsl builder
- */
- default RedisEndpointConsumerBuilder
redisTemplate(org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object> redisTemplate) {
- doSetProperty("redisTemplate", redisTemplate);
- return this;
- }
- /**
- * The org.springframework.data.redis.core.RedisTemplate that the
- * producer runs the commands with, which also decides how keys and
- * values are serialized. If not set, the redisTemplate of the
component
- * is used, and if that is not set either, the endpoint creates a
- * RedisTemplate from connectionFactory and serializer. The consumer
- * does not use it.
- *
- * The option will be converted to a
- *
<code>org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object></code> type.
- *
- * Group: common
- *
- * @param redisTemplate the value to set
- * @return the dsl builder
- */
- default RedisEndpointConsumerBuilder redisTemplate(String
redisTemplate) {
- doSetProperty("redisTemplate", redisTemplate);
- return this;
- }
/**
* The org.springframework.data.redis.serializer.RedisSerializer for
* keys and values. The endpoint sets it as the default serializer of
@@ -226,6 +168,24 @@ public interface RedisEndpointBuilderFactory {
doSetProperty("serializer", serializer);
return this;
}
+ /**
+ * The channels that the consumer subscribes to, separated by comma.
+ * With the PSUBSCRIBE command they are patterns, such as news.*, and
+ * with SUBSCRIBE channel names. Required by the consumer. The producer
+ * does not use it: PUBLISH takes the channel from the
+ * CamelRedis.Channel header.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: consumer
+ *
+ * @param channels the value to set
+ * @return the dsl builder
+ */
+ default RedisEndpointConsumerBuilder channels(String channels) {
+ doSetProperty("channels", channels);
+ return this;
+ }
}
/**
@@ -426,24 +386,6 @@ public interface RedisEndpointBuilderFactory {
return (AdvancedRedisEndpointProducerBuilder) this;
}
- /**
- * The channels that the consumer subscribes to, separated by comma.
- * With the PSUBSCRIBE command they are patterns, such as news.*, and
- * with SUBSCRIBE channel names. Required by the consumer. The producer
- * does not use it: PUBLISH takes the channel from the
- * CamelRedis.Channel header.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param channels the value to set
- * @return the dsl builder
- */
- default RedisEndpointProducerBuilder channels(String channels) {
- doSetProperty("channels", channels);
- return this;
- }
/**
* The Redis command that the producer runs, such as GET, SET or HSET.
* The CamelRedis.Command header replaces this option for a message.
The
@@ -526,46 +468,6 @@ public interface RedisEndpointBuilderFactory {
doSetProperty("connectionFactory", connectionFactory);
return this;
}
- /**
- * The org.springframework.data.redis.core.RedisTemplate that the
- * producer runs the commands with, which also decides how keys and
- * values are serialized. If not set, the redisTemplate of the
component
- * is used, and if that is not set either, the endpoint creates a
- * RedisTemplate from connectionFactory and serializer. The consumer
- * does not use it.
- *
- * The option is a:
- *
<code>org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object></code> type.
- *
- * Group: common
- *
- * @param redisTemplate the value to set
- * @return the dsl builder
- */
- default RedisEndpointProducerBuilder
redisTemplate(org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object> redisTemplate) {
- doSetProperty("redisTemplate", redisTemplate);
- return this;
- }
- /**
- * The org.springframework.data.redis.core.RedisTemplate that the
- * producer runs the commands with, which also decides how keys and
- * values are serialized. If not set, the redisTemplate of the
component
- * is used, and if that is not set either, the endpoint creates a
- * RedisTemplate from connectionFactory and serializer. The consumer
- * does not use it.
- *
- * The option will be converted to a
- *
<code>org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object></code> type.
- *
- * Group: common
- *
- * @param redisTemplate the value to set
- * @return the dsl builder
- */
- default RedisEndpointProducerBuilder redisTemplate(String
redisTemplate) {
- doSetProperty("redisTemplate", redisTemplate);
- return this;
- }
/**
* The org.springframework.data.redis.serializer.RedisSerializer for
* keys and values. The endpoint sets it as the default serializer of
@@ -608,6 +510,46 @@ public interface RedisEndpointBuilderFactory {
doSetProperty("serializer", serializer);
return this;
}
+ /**
+ * The org.springframework.data.redis.core.RedisTemplate that the
+ * producer runs the commands with, which also decides how keys and
+ * values are serialized. If not set, the redisTemplate of the
component
+ * is used, and if that is not set either, the endpoint creates a
+ * RedisTemplate from connectionFactory and serializer. The consumer
+ * does not use it.
+ *
+ * The option is a:
+ *
<code>org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object></code> type.
+ *
+ * Group: producer
+ *
+ * @param redisTemplate the value to set
+ * @return the dsl builder
+ */
+ default RedisEndpointProducerBuilder
redisTemplate(org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object> redisTemplate) {
+ doSetProperty("redisTemplate", redisTemplate);
+ return this;
+ }
+ /**
+ * The org.springframework.data.redis.core.RedisTemplate that the
+ * producer runs the commands with, which also decides how keys and
+ * values are serialized. If not set, the redisTemplate of the
component
+ * is used, and if that is not set either, the endpoint creates a
+ * RedisTemplate from connectionFactory and serializer. The consumer
+ * does not use it.
+ *
+ * The option will be converted to a
+ *
<code>org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object></code> type.
+ *
+ * Group: producer
+ *
+ * @param redisTemplate the value to set
+ * @return the dsl builder
+ */
+ default RedisEndpointProducerBuilder redisTemplate(String
redisTemplate) {
+ doSetProperty("redisTemplate", redisTemplate);
+ return this;
+ }
}
/**
@@ -699,24 +641,6 @@ public interface RedisEndpointBuilderFactory {
return (AdvancedRedisEndpointBuilder) this;
}
- /**
- * The channels that the consumer subscribes to, separated by comma.
- * With the PSUBSCRIBE command they are patterns, such as news.*, and
- * with SUBSCRIBE channel names. Required by the consumer. The producer
- * does not use it: PUBLISH takes the channel from the
- * CamelRedis.Channel header.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param channels the value to set
- * @return the dsl builder
- */
- default RedisEndpointBuilder channels(String channels) {
- doSetProperty("channels", channels);
- return this;
- }
/**
* The Redis command that the producer runs, such as GET, SET or HSET.
* The CamelRedis.Command header replaces this option for a message.
The
@@ -799,46 +723,6 @@ public interface RedisEndpointBuilderFactory {
doSetProperty("connectionFactory", connectionFactory);
return this;
}
- /**
- * The org.springframework.data.redis.core.RedisTemplate that the
- * producer runs the commands with, which also decides how keys and
- * values are serialized. If not set, the redisTemplate of the
component
- * is used, and if that is not set either, the endpoint creates a
- * RedisTemplate from connectionFactory and serializer. The consumer
- * does not use it.
- *
- * The option is a:
- *
<code>org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object></code> type.
- *
- * Group: common
- *
- * @param redisTemplate the value to set
- * @return the dsl builder
- */
- default RedisEndpointBuilder
redisTemplate(org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object> redisTemplate) {
- doSetProperty("redisTemplate", redisTemplate);
- return this;
- }
- /**
- * The org.springframework.data.redis.core.RedisTemplate that the
- * producer runs the commands with, which also decides how keys and
- * values are serialized. If not set, the redisTemplate of the
component
- * is used, and if that is not set either, the endpoint creates a
- * RedisTemplate from connectionFactory and serializer. The consumer
- * does not use it.
- *
- * The option will be converted to a
- *
<code>org.springframework.data.redis.core.RedisTemplate<java.lang.Object,
java.lang.Object></code> type.
- *
- * Group: common
- *
- * @param redisTemplate the value to set
- * @return the dsl builder
- */
- default RedisEndpointBuilder redisTemplate(String redisTemplate) {
- doSetProperty("redisTemplate", redisTemplate);
- return this;
- }
/**
* The org.springframework.data.redis.serializer.RedisSerializer for
* keys and values. The endpoint sets it as the default serializer of
@@ -949,11 +833,13 @@ public interface RedisEndpointBuilderFactory {
* connects to it with the JedisConnectionFactory that it creates when
* connectionFactory is not set, and does not use it otherwise. If not
* set, localhost is used.
+ * Default value: localhost
*
* Path parameter: port (required)
* The port of the Redis server. The endpoint connects to it with the
* JedisConnectionFactory that it creates when connectionFactory is not
* set, and does not use it otherwise. If not set, 6379 is used.
+ * Default value: 6379
*
* @param path host:port
* @return the dsl builder
@@ -977,11 +863,13 @@ public interface RedisEndpointBuilderFactory {
* connects to it with the JedisConnectionFactory that it creates when
* connectionFactory is not set, and does not use it otherwise. If not
* set, localhost is used.
+ * Default value: localhost
*
* Path parameter: port (required)
* The port of the Redis server. The endpoint connects to it with the
* JedisConnectionFactory that it creates when connectionFactory is not
* set, and does not use it otherwise. If not set, 6379 is used.
+ * Default value: 6379
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
@@ -1024,7 +912,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code String} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Key}.
*/
@@ -1040,7 +928,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Collection<String> or String} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Keys}.
*/
@@ -1053,7 +941,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code String} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Field}.
*/
@@ -1066,7 +954,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Collection<String>} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Fields}.
*/
@@ -1084,7 +972,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Object} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Value}.
*/
@@ -1099,7 +987,7 @@ public interface RedisEndpointBuilderFactory {
* The option is a: {@code Map<String, Object> or Collection<Object>}
* type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Values}.
*/
@@ -1109,12 +997,12 @@ public interface RedisEndpointBuilderFactory {
/**
* The index of the first element for LRANGE, LTRIM, ZRANGE, ZREVRANGE
* and ZREMRANGEBYRANK, the offset of the first byte for GETRANGE, and
- * the minimum score for ZREMRANGEBYSCORE. Indexes start at 0, and a
- * negative index counts from the end.
+ * the minimum score for ZREMRANGEBYSCORE when CamelRedis.Min is not
+ * set. Indexes start at 0, and a negative index counts from the end.
*
* The option is a: {@code Long} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Start}.
*/
@@ -1124,13 +1012,13 @@ public interface RedisEndpointBuilderFactory {
/**
* The index of the last element, inclusive, for LRANGE, LTRIM, ZRANGE,
* ZREVRANGE and ZREMRANGEBYRANK, the offset of the last byte for
- * GETRANGE, and the maximum score for ZREMRANGEBYSCORE. Indexes start
- * at 0, and a negative index counts from the end, so -1 is the last
- * element.
+ * GETRANGE, and the maximum score for ZREMRANGEBYSCORE when
+ * CamelRedis.Max is not set. Indexes start at 0, and a negative index
+ * counts from the end, so -1 is the last element.
*
* The option is a: {@code Long} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.End}.
*/
@@ -1144,7 +1032,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Long} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Timeout}.
*/
@@ -1157,7 +1045,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Long} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Offset}.
*/
@@ -1170,7 +1058,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code String} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Destination}.
*/
@@ -1181,7 +1069,7 @@ public interface RedisEndpointBuilderFactory {
* The channel that PUBLISH posts the message to. The consumer sets it
* to the name of the channel that the message was received on.
*
- * The option is a: {@code byte[] or String} type.
+ * The option is a: {@code String} type.
*
* Group: common
*
@@ -1197,7 +1085,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Object} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Message}.
*/
@@ -1211,7 +1099,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Long} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Index}.
*/
@@ -1224,7 +1112,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code String} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Position}.
*/
@@ -1237,7 +1125,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code String} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Pivot}.
*/
@@ -1252,7 +1140,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Long} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Count}.
*/
@@ -1265,7 +1153,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Long} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Timestamp}.
*/
@@ -1292,7 +1180,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Integer} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Db}.
*/
@@ -1304,7 +1192,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Double} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Score}.
*/
@@ -1312,12 +1200,12 @@ public interface RedisEndpointBuilderFactory {
return "CamelRedis.Score";
}
/**
- * The minimum score, inclusive, for ZCOUNT, ZRANGEBYSCORE and
- * ZREVRANGEBYSCORE.
+ * The minimum score, inclusive, for ZCOUNT, ZRANGEBYSCORE,
+ * ZREVRANGEBYSCORE and ZREMRANGEBYSCORE.
*
* The option is a: {@code Double} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Min}.
*/
@@ -1325,12 +1213,12 @@ public interface RedisEndpointBuilderFactory {
return "CamelRedis.Min";
}
/**
- * The maximum score, inclusive, for ZCOUNT, ZRANGEBYSCORE and
- * ZREVRANGEBYSCORE.
+ * The maximum score, inclusive, for ZCOUNT, ZRANGEBYSCORE,
+ * ZREVRANGEBYSCORE and ZREMRANGEBYSCORE.
*
* The option is a: {@code Double} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Max}.
*/
@@ -1342,7 +1230,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Double} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Increment}.
*/
@@ -1356,7 +1244,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Boolean} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.WithScore}.
*/
@@ -1369,7 +1257,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Double} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Latitude}.
*/
@@ -1382,7 +1270,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Double} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Longitude}.
*/
@@ -1395,7 +1283,7 @@ public interface RedisEndpointBuilderFactory {
*
* The option is a: {@code Double} type.
*
- * Group: common
+ * Group: producer
*
* @return the name of the header {@code Redis.Radius}.
*/