Class RedisInboundChannelAdapterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<RedisInboundChannelAdapterSpec, RedisInboundChannelAdapter>
org.springframework.integration.dsl.MessageProducerSpec<RedisInboundChannelAdapterSpec, RedisInboundChannelAdapter>
org.springframework.integration.redis.dsl.RedisInboundChannelAdapterSpec
- All Implemented Interfaces:
DisposableBean, FactoryBean<RedisInboundChannelAdapter>, InitializingBean, Lifecycle, Phased, SmartLifecycle
public class RedisInboundChannelAdapterSpec
extends MessageProducerSpec<RedisInboundChannelAdapterSpec, RedisInboundChannelAdapter>
- Since:
- 7.1
- Author:
- Jiandong Ma
-
Field Summary
Fields inherited from class IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRedisInboundChannelAdapterSpec(RedisConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionmessageConverter(MessageConverter messageConverter) Specify the messageConverter to convert between Redis messages and Spring message payloads.serializer(RedisSerializer<?> serializer) Specify the RedisSerializer to deserialize the body of Redis messages.taskExecutor(Executor taskExecutor) Specify anExecutorfor running the message listeners when messages are received.topicPatterns(String... topicPatterns) Specify the topicPatterns to subscribe.Specify the topics to subscribe.Methods inherited from class MessageProducerSpec
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, observationConvention, outputChannel, outputChannel, phase, role, sendTimeout, shouldTrackMethods inherited from class IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingletonMethods inherited from interface SmartLifecycle
isPauseable
-
Constructor Details
-
RedisInboundChannelAdapterSpec
-
-
Method Details
-
serializer
Specify the RedisSerializer to deserialize the body of Redis messages.- Parameters:
serializer- the serializer- Returns:
- the spec
- See Also:
-
topics
Specify the topics to subscribe.- Parameters:
topics- the topics- Returns:
- the spec
- See Also:
-
topicPatterns
Specify the topicPatterns to subscribe.- Parameters:
topicPatterns- the topicPatterns- Returns:
- the spec
- See Also:
-
messageConverter
Specify the messageConverter to convert between Redis messages and Spring message payloads.- Parameters:
messageConverter- the messageConverter- Returns:
- the spec
- See Also:
-
taskExecutor
Specify anExecutorfor running the message listeners when messages are received.- Parameters:
taskExecutor- the taskExecutor- Returns:
- the spec
- See Also:
-