Class RedisQueueOutboundChannelAdapterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<RedisQueueOutboundChannelAdapterSpec, RedisQueueOutboundChannelAdapter>
org.springframework.integration.dsl.MessageHandlerSpec<RedisQueueOutboundChannelAdapterSpec, RedisQueueOutboundChannelAdapter>
org.springframework.integration.redis.dsl.RedisQueueOutboundChannelAdapterSpec
- All Implemented Interfaces:
DisposableBean,FactoryBean<RedisQueueOutboundChannelAdapter>,InitializingBean,Lifecycle,Phased,SmartLifecycle
public class RedisQueueOutboundChannelAdapterSpec
extends MessageHandlerSpec<RedisQueueOutboundChannelAdapterSpec, RedisQueueOutboundChannelAdapter>
- 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
ConstructorsModifierConstructorDescriptionprotectedRedisQueueOutboundChannelAdapterSpec(String queueName, RedisConnectionFactory connectionFactory) protectedRedisQueueOutboundChannelAdapterSpec(Expression queueExpression, RedisConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionextractPayload(boolean extractPayload) Specify send only the payload or the entire Message to the Redis queue.leftPush(boolean leftPush) Specify use "left push" or "right push" to write messages to the Redis Queue.serializer(RedisSerializer<?> serializer) Specify the RedisSerializer to serialize data before sending to the Redis Queue.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, 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
-
RedisQueueOutboundChannelAdapterSpec
protected RedisQueueOutboundChannelAdapterSpec(String queueName, RedisConnectionFactory connectionFactory) -
RedisQueueOutboundChannelAdapterSpec
protected RedisQueueOutboundChannelAdapterSpec(Expression queueExpression, RedisConnectionFactory connectionFactory)
-
-
Method Details
-
extractPayload
Specify send only the payload or the entire Message to the Redis queue.- Parameters:
extractPayload- the extractPayload- Returns:
- the spec
- See Also:
-
serializer
Specify the RedisSerializer to serialize data before sending to the Redis Queue.- Parameters:
serializer- the serializer- Returns:
- the spec
- See Also:
-
leftPush
Specify use "left push" or "right push" to write messages to the Redis Queue.- Parameters:
leftPush- the leftPush- Returns:
- the spec
- See Also:
-