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.static RedisOutboundGatewaySpecoutboundGateway(RedisConnectionFactory connectionFactory) The factory to produce aRedisOutboundGatewaySpec.static RedisOutboundGatewaySpecoutboundGateway(RedisTemplate<String, ?> redisTemplate) The factory to produce aRedisOutboundGatewaySpec.queueInboundChannelAdapter(String queueName, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueInboundChannelAdapterSpec.static RedisQueueInboundGatewaySpecqueueInboundGateway(String queueName, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueInboundGatewaySpec.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.queueOutboundGateway(String queueName, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueOutboundGatewaySpec.storeInboundChannelAdapter(RedisConnectionFactory connectionFactory, String key) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapter(RedisConnectionFactory connectionFactory, Supplier<Message<?>> keySupplier) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapter(RedisConnectionFactory connectionFactory, Expression keyExpression) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapter(RedisTemplate<String, ?> redisTemplate, String key) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapter(RedisTemplate<String, ?> redisTemplate, Supplier<Message<?>> keySupplier) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapter(RedisTemplate<String, ?> redisTemplate, Expression keyExpression) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeOutboundChannelAdapter(RedisConnectionFactory connectionFactory) The factory to produce aRedisStoreOutboundChannelAdapterSpec.storeOutboundChannelAdapter(RedisTemplate<String, ?> redisTemplate) The factory to produce aRedisStoreOutboundChannelAdapterSpec.
-
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
-
storeInboundChannelAdapter
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapter(RedisConnectionFactory connectionFactory, String key) The factory to produce aRedisStoreInboundChannelAdapterSpec.- Parameters:
connectionFactory- theRedisConnectionFactoryto build onkey- The key of the Redis collection to build on- Returns:
- the
RedisStoreInboundChannelAdapterSpecinstance
-
storeInboundChannelAdapter
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapter(RedisConnectionFactory connectionFactory, Expression keyExpression) The factory to produce aRedisStoreInboundChannelAdapterSpec.- Parameters:
connectionFactory- theRedisConnectionFactoryto build onkeyExpression- The keyExpression of the Redis collection to build on- Returns:
- the
RedisStoreInboundChannelAdapterSpecinstance
-
storeInboundChannelAdapter
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapter(RedisConnectionFactory connectionFactory, Supplier<Message<?>> keySupplier) The factory to produce aRedisStoreInboundChannelAdapterSpec.- Parameters:
connectionFactory- theRedisConnectionFactoryto build onkeySupplier- The keySupplier of the Redis collection to build on- Returns:
- the
RedisStoreInboundChannelAdapterSpecinstance
-
storeInboundChannelAdapter
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapter(RedisTemplate<String, ?> redisTemplate, String key) The factory to produce aRedisStoreInboundChannelAdapterSpec.- Parameters:
redisTemplate- theRedisTemplateto build onkey- The key of the Redis collection to build on- Returns:
- the
RedisStoreInboundChannelAdapterSpecinstance
-
storeInboundChannelAdapter
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapter(RedisTemplate<String, ?> redisTemplate, Expression keyExpression) The factory to produce aRedisStoreInboundChannelAdapterSpec.- Parameters:
redisTemplate- theRedisTemplateto build onkeyExpression- The keyExpression of the Redis collection to build on- Returns:
- the
RedisStoreInboundChannelAdapterSpecinstance
-
storeInboundChannelAdapter
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapter(RedisTemplate<String, ?> redisTemplate, Supplier<Message<?>> keySupplier) The factory to produce aRedisStoreInboundChannelAdapterSpec.- Parameters:
redisTemplate- theRedisTemplateto build onkeySupplier- The keySupplier of the Redis collection to build on- Returns:
- the
RedisStoreInboundChannelAdapterSpecinstance
-
storeOutboundChannelAdapter
public static RedisStoreOutboundChannelAdapterSpec storeOutboundChannelAdapter(RedisConnectionFactory connectionFactory) The factory to produce aRedisStoreOutboundChannelAdapterSpec.- Parameters:
connectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisStoreOutboundChannelAdapterSpecinstance
-
storeOutboundChannelAdapter
public static RedisStoreOutboundChannelAdapterSpec storeOutboundChannelAdapter(RedisTemplate<String, ?> redisTemplate) The factory to produce aRedisStoreOutboundChannelAdapterSpec.- Parameters:
redisTemplate- theRedisTemplateto build on- Returns:
- the
RedisStoreOutboundChannelAdapterSpecinstance
-
outboundGateway
The factory to produce aRedisOutboundGatewaySpec.- Parameters:
redisTemplate- theRedisTemplateto build on- Returns:
- the
RedisOutboundGatewaySpecinstance
-
outboundGateway
The factory to produce aRedisOutboundGatewaySpec.- Parameters:
connectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisOutboundGatewaySpecinstance
-
queueOutboundGateway
public static RedisQueueOutboundGatewaySpec queueOutboundGateway(String queueName, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueOutboundGatewaySpec.- Parameters:
queueName- The queueName of the Redis list to build onconnectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisQueueOutboundGatewaySpecinstance
-
queueInboundGateway
public static RedisQueueInboundGatewaySpec queueInboundGateway(String queueName, RedisConnectionFactory connectionFactory) The factory to produce aRedisQueueInboundGatewaySpec.- Parameters:
queueName- The queueName of the Redis list to build onconnectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisQueueInboundGatewaySpecinstance
-