Interface RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
RedisEndpointBuilderFactory.RedisEndpointBuilder
- Enclosing interface:
- RedisEndpointBuilderFactory
public static interface RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the Spring Redis component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default RedisEndpointBuilderFactory.AdvancedRedisEndpointConsumerBuilder
advanced()
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
bridgeErrorHandler(boolean bridgeErrorHandler)
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.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
bridgeErrorHandler(String bridgeErrorHandler)
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.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
channels(String channels)
List of topic names or name patterns to subscribe to.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
command(String command)
Default command, which can be overridden by message header.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
command(RedisEndpointBuilderFactory.Command command)
Default command, which can be overridden by message header.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
connectionFactory(Object connectionFactory)
Reference to a pre-configured RedisConnectionFactory instance to use.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
connectionFactory(String connectionFactory)
Reference to a pre-configured RedisConnectionFactory instance to use.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
redisTemplate(Object redisTemplate)
Reference to a pre-configured RedisTemplate instance to use.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
redisTemplate(String redisTemplate)
Reference to a pre-configured RedisTemplate instance to use.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
serializer(Object serializer)
Reference to a pre-configured RedisSerializer instance to use.default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder
serializer(String serializer)
Reference to a pre-configured RedisSerializer instance to use.
-
-
-
Method Detail
-
advanced
default RedisEndpointBuilderFactory.AdvancedRedisEndpointConsumerBuilder advanced()
-
channels
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder channels(String channels)
List of topic names or name patterns to subscribe to. Multiple names can be separated by comma. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
channels
- the value to set- Returns:
- the dsl builder
-
command
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder command(RedisEndpointBuilderFactory.Command command)
Default command, which can be overridden by message header. Notice the consumer only supports the following commands: PSUBSCRIBE and SUBSCRIBE. The option is a: <code>org.apache.camel.component.redis.Command</code> type. Default: SET Group: common- Parameters:
command
- the value to set- Returns:
- the dsl builder
-
command
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder command(String command)
Default command, which can be overridden by message header. Notice the consumer only supports the following commands: PSUBSCRIBE and SUBSCRIBE. The option will be converted to a <code>org.apache.camel.component.redis.Command</code> type. Default: SET Group: common- Parameters:
command
- the value to set- Returns:
- the dsl builder
-
connectionFactory
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder connectionFactory(Object connectionFactory)
Reference to a pre-configured RedisConnectionFactory instance to use. The option is a: <code>org.springframework.data.redis.connection.RedisConnectionFactory</code> type. Group: common- Parameters:
connectionFactory
- the value to set- Returns:
- the dsl builder
-
connectionFactory
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder connectionFactory(String connectionFactory)
Reference to a pre-configured RedisConnectionFactory instance to use. The option will be converted to a <code>org.springframework.data.redis.connection.RedisConnectionFactory</code> type. Group: common- Parameters:
connectionFactory
- the value to set- Returns:
- the dsl builder
-
redisTemplate
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder redisTemplate(Object redisTemplate)
Reference to a pre-configured RedisTemplate instance to use. The option is a: <code>org.springframework.data.redis.core.RedisTemplate</code> type. Group: common- Parameters:
redisTemplate
- the value to set- Returns:
- the dsl builder
-
redisTemplate
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder redisTemplate(String redisTemplate)
Reference to a pre-configured RedisTemplate instance to use. The option will be converted to a <code>org.springframework.data.redis.core.RedisTemplate</code> type. Group: common- Parameters:
redisTemplate
- the value to set- Returns:
- the dsl builder
-
serializer
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder serializer(Object serializer)
Reference to a pre-configured RedisSerializer instance to use. The option is a: <code>org.springframework.data.redis.serializer.RedisSerializer</code> type. Group: common- Parameters:
serializer
- the value to set- Returns:
- the dsl builder
-
serializer
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder serializer(String serializer)
Reference to a pre-configured RedisSerializer instance to use. The option will be converted to a <code>org.springframework.data.redis.serializer.RedisSerializer</code> type. Group: common- Parameters:
serializer
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
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 or ERROR level and ignored. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default RedisEndpointBuilderFactory.RedisEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
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 or ERROR level and ignored. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
-