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 org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.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 org.springframework.integration.dsl.MessageProducerSpec
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, observationConvention, outputChannel, outputChannel, phase, role, sendTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingletonMethods inherited from interface org.springframework.context.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:
-