The spring-redis component allows sending and receiving messages from Redis.
Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
host | path | common | true | java.lang.String | The host where Redis server is running. | ||
port | path | common | true | java.lang.Integer | Redis server port number | ||
channels | parameter | common | java.lang.String | List of topic names or name patterns to subscribe to. Multiple names can be separated by comma. | |||
command | parameter | common | SET | org.apache.camel.component.redis.Command | 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 APPEND SUBSTR HSET HGET HSETNX HMSET HMGET HINCRBY HEXISTS HDEL HLEN HKEYS HVALS HGETALL RPUSH LPUSH LLEN LRANGE LTRIM LINDEX LSET LREM LPOP RPOP RPOPLPUSH SADD SMEMBERS SREM SPOP SMOVE SCARD SISMEMBER SINTER SINTERSTORE SUNION SUNIONSTORE SDIFF SDIFFSTORE SRANDMEMBER ZADD ZRANGE ZREM ZINCRBY ZRANK ZREVRANK ZREVRANGE ZCARD ZSCORE MULTI DISCARD EXEC WATCH UNWATCH SORT BLPOP BRPOP AUTH SUBSCRIBE PUBLISH UNSUBSCRIBE PSUBSCRIBE PUNSUBSCRIBE ZCOUNT ZRANGEBYSCORE ZREVRANGEBYSCORE ZREMRANGEBYRANK ZREMRANGEBYSCORE ZUNIONSTORE ZINTERSTORE SAVE BGSAVE BGREWRITEAOF LASTSAVE SHUTDOWN INFO MONITOR SLAVEOF CONFIG STRLEN SYNC LPUSHX PERSIST RPUSHX ECHO LINSERT DEBUG BRPOPLPUSH SETBIT GETBIT SETRANGE GETRANGE PEXPIRE PEXPIREAT |
Default command, which can be overridden by message header. Notice the consumer only supports the following commands: PSUBSCRIBE and SUBSCRIBE | |
connectionFactory | parameter | common | org.springframework.data.redis.connection.RedisConnectionFactory | Reference to a pre-configured RedisConnectionFactory instance to use. | |||
listenerContainer | parameter | common | org.springframework.data.redis.listener.RedisMessageListenerContainer | Reference to a pre-configured RedisMessageListenerContainer instance to use. | |||
redisTemplate | parameter | common | org.springframework.data.redis.core.RedisTemplate | Reference to a pre-configured RedisTemplate instance to use. | |||
serializer | parameter | common | org.springframework.data.redis.serializer.RedisSerializer | Reference to a pre-configured RedisSerializer instance to use. | |||
bridgeErrorHandler | parameter | consumer | boolean | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exceptionHandler | parameter | consumer (advanced) | org.apache.camel.spi.ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exchangePattern | parameter | consumer (advanced) | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the exchange pattern when the consumer creates an exchange. | ||
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |