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 RedisOutboundGatewaySpecoutboundGatewaySpec(RedisConnectionFactory connectionFactory) The factory to produce aRedisOutboundGatewaySpec.static RedisOutboundGatewaySpecoutboundGatewaySpec(RedisTemplate<String, ?> redisTemplate) The factory to produce aRedisOutboundGatewaySpec.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.storeInboundChannelAdapterSpec(RedisConnectionFactory connectionFactory, String key) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapterSpec(RedisConnectionFactory connectionFactory, Supplier<Message<?>> keySupplier) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapterSpec(RedisConnectionFactory connectionFactory, Expression keyExpression) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapterSpec(RedisTemplate<String, ?> redisTemplate, String key) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapterSpec(RedisTemplate<String, ?> redisTemplate, Supplier<Message<?>> keySupplier) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeInboundChannelAdapterSpec(RedisTemplate<String, ?> redisTemplate, Expression keyExpression) The factory to produce aRedisStoreInboundChannelAdapterSpec.storeOutboundChannelAdapterSpec(RedisConnectionFactory connectionFactory) The factory to produce aRedisStoreOutboundChannelAdapterSpec.storeOutboundChannelAdapterSpec(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
-
storeInboundChannelAdapterSpec
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapterSpec(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
-
storeInboundChannelAdapterSpec
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapterSpec(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
-
storeInboundChannelAdapterSpec
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapterSpec(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
-
storeInboundChannelAdapterSpec
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapterSpec(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
-
storeInboundChannelAdapterSpec
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapterSpec(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
-
storeInboundChannelAdapterSpec
public static RedisStoreInboundChannelAdapterSpec storeInboundChannelAdapterSpec(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
-
storeOutboundChannelAdapterSpec
public static RedisStoreOutboundChannelAdapterSpec storeOutboundChannelAdapterSpec(RedisConnectionFactory connectionFactory) The factory to produce aRedisStoreOutboundChannelAdapterSpec.- Parameters:
connectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisStoreOutboundChannelAdapterSpecinstance
-
storeOutboundChannelAdapterSpec
public static RedisStoreOutboundChannelAdapterSpec storeOutboundChannelAdapterSpec(RedisTemplate<String, ?> redisTemplate) The factory to produce aRedisStoreOutboundChannelAdapterSpec.- Parameters:
redisTemplate- theRedisTemplateto build on- Returns:
- the
RedisStoreOutboundChannelAdapterSpecinstance
-
outboundGatewaySpec
The factory to produce aRedisOutboundGatewaySpec.- Parameters:
redisTemplate- theRedisTemplateto build on- Returns:
- the
RedisOutboundGatewaySpecinstance
-
outboundGatewaySpec
public static RedisOutboundGatewaySpec outboundGatewaySpec(RedisConnectionFactory connectionFactory) The factory to produce aRedisOutboundGatewaySpec.- Parameters:
connectionFactory- theRedisConnectionFactoryto build on- Returns:
- the
RedisOutboundGatewaySpecinstance
-