Class Redis
java.lang.Object
org.springframework.integration.redis.dsl.Redis
Factory class for Redis components.
- Since:
- 7.1
- Author:
- Jiandong Ma
-
Method Summary
Modifier and TypeMethodDescriptioninboundChannelAdapter(RedisConnectionFactory connectionFactory) The factory to produce aRedisInboundChannelAdapterSpec.outboundChannelAdapter(RedisConnectionFactory connectionFactory) The factory to produce aRedisOutboundChannelAdapterSpec.queueInboundChannelAdapter(String queueName, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueInboundChannelAdapterSpec.queueOutboundChannelAdapter(String queueName, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueOutboundChannelAdapterSpec.queueOutboundChannelAdapter(Function<Message<?>, String> queueFunction, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueOutboundChannelAdapterSpec.queueOutboundChannelAdapter(Expression queueExpression, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueOutboundChannelAdapterSpec.
-
Method Details
-
inboundChannelAdapter
public static RedisInboundChannelAdapterSpec inboundChannelAdapter(RedisConnectionFactory connectionFactory) The factory to produce aRedisInboundChannelAdapterSpec.- Parameters:
connectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisInboundChannelAdapterSpecinstance
-
outboundChannelAdapter
public static RedisOutboundChannelAdapterSpec outboundChannelAdapter(RedisConnectionFactory connectionFactory) The factory to produce aRedisOutboundChannelAdapterSpec.- Parameters:
connectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisOutboundChannelAdapterSpecinstance
-
queueInboundChannelAdapter
public static RedisQueueInboundChannelAdapterSpec queueInboundChannelAdapter(String queueName, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueInboundChannelAdapterSpec.- Parameters:
queueName- The queueName of the Redis list to build onconnectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisQueueInboundChannelAdapterSpecinstance
-
queueOutboundChannelAdapter
public static RedisQueueOutboundChannelAdapterSpec queueOutboundChannelAdapter(String queueName, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueOutboundChannelAdapterSpec.- Parameters:
queueName- The queueName of the Redis list to build onconnectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisQueueOutboundChannelAdapterSpecinstance
-
queueOutboundChannelAdapter
public static RedisQueueOutboundChannelAdapterSpec queueOutboundChannelAdapter(Expression queueExpression, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueOutboundChannelAdapterSpec.- Parameters:
queueExpression- The queueExpression of the Redis list to build onconnectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisQueueOutboundChannelAdapterSpecinstance
-
queueOutboundChannelAdapter
public static RedisQueueOutboundChannelAdapterSpec queueOutboundChannelAdapter(Function<Message<?>, String> queueFunction, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueOutboundChannelAdapterSpec.- Parameters:
queueFunction- The queueExpression of the Redis list to build onconnectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisQueueOutboundChannelAdapterSpecinstance
-