Class RedisStoreOutboundChannelAdapterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<RedisStoreOutboundChannelAdapterSpec, RedisStoreWritingMessageHandler>
org.springframework.integration.dsl.MessageHandlerSpec<RedisStoreOutboundChannelAdapterSpec, RedisStoreWritingMessageHandler>
org.springframework.integration.redis.dsl.RedisStoreOutboundChannelAdapterSpec
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<RedisStoreWritingMessageHandler>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
public class RedisStoreOutboundChannelAdapterSpec
extends org.springframework.integration.dsl.MessageHandlerSpec<RedisStoreOutboundChannelAdapterSpec, RedisStoreWritingMessageHandler>
A
MessageHandlerSpec for a RedisStoreWritingMessageHandler.- Since:
- 7.1
-
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
ConstructorsModifierConstructorDescriptionprotectedRedisStoreOutboundChannelAdapterSpec(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) protectedRedisStoreOutboundChannelAdapterSpec(org.springframework.data.redis.core.RedisTemplate<String, ?> redisTemplate) -
Method Summary
Modifier and TypeMethodDescriptioncollectionType(org.springframework.data.redis.support.collections.RedisCollectionFactoryBean.CollectionType collectionType) Specify the collection type.extractPayloadElements(boolean extractPayloadElements) Specify whether payload elements should be extracted.Specify the key for the Redis store.keyExpression(String keyExpression) Specify a SpEL Expression to be used to determine the key for the Redis store.keyExpression(org.springframework.expression.Expression keyExpression) Specify an Expression to be used to determine the key for the Redis store.keyFunction(Function<org.springframework.messaging.Message<?>, String> keyFunction) Specify a KeyFunction to be used to determine the key for the Redis store.mapKeyExpression(String mapKeyExpression) Specify the SPEL expression used as the key for Map and Properties entries.mapKeyExpression(org.springframework.expression.Expression mapKeyExpression) Specify the expression used as the key for Map and Properties entries.mapKeyFunction(Function<org.springframework.messaging.Message<?>, String> mapKeyFunction) Specify the function used as the key for Map and Properties entries.zsetIncrementScoreExpression(String zsetIncrementScoreExpression) Specify the SPEL expression used as the INCR flag for the ZADD command in case of ZSet collection.zsetIncrementScoreExpression(org.springframework.expression.Expression zsetIncrementScoreExpression) Specify the expression used as the INCR flag for the ZADD command in case of ZSet collection.zsetIncrementScoreFunction(Function<org.springframework.messaging.Message<?>, Boolean> zsetIncrementScoreFunction) Specify the function used as the INCR flag for the ZADD command in case of ZSet collection.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 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, pause, restart
-
Constructor Details
-
RedisStoreOutboundChannelAdapterSpec
protected RedisStoreOutboundChannelAdapterSpec(org.springframework.data.redis.core.RedisTemplate<String, ?> redisTemplate) -
RedisStoreOutboundChannelAdapterSpec
protected RedisStoreOutboundChannelAdapterSpec(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
-
-
Method Details
-
key
Specify the key for the Redis store.- Parameters:
key- the key- Returns:
- the spec
- See Also:
-
keyExpression
Specify a SpEL Expression to be used to determine the key for the Redis store.- Parameters:
keyExpression- the keyExpression- Returns:
- the spec
- See Also:
-
keyExpression
public RedisStoreOutboundChannelAdapterSpec keyExpression(org.springframework.expression.Expression keyExpression) Specify an Expression to be used to determine the key for the Redis store.- Parameters:
keyExpression- the keyExpression- Returns:
- the spec
- See Also:
-
keyFunction
public RedisStoreOutboundChannelAdapterSpec keyFunction(Function<org.springframework.messaging.Message<?>, String> keyFunction) Specify a KeyFunction to be used to determine the key for the Redis store.- Parameters:
keyFunction- the keyFunction- Returns:
- the spec
- See Also:
-
collectionType
public RedisStoreOutboundChannelAdapterSpec collectionType(org.springframework.data.redis.support.collections.RedisCollectionFactoryBean.CollectionType collectionType) Specify the collection type. supported collections are LIST, SET, ZSET, PROPERTIES, and MAP.- Parameters:
collectionType- the collectionType- Returns:
- the spec
- See Also:
-
extractPayloadElements
Specify whether payload elements should be extracted.- Parameters:
extractPayloadElements- the extractPayloadElements- Returns:
- the spec
- See Also:
-
mapKeyExpression
Specify the SPEL expression used as the key for Map and Properties entries.- Parameters:
mapKeyExpression- the mapKeyExpression- Returns:
- the spec
- See Also:
-
mapKeyExpression
public RedisStoreOutboundChannelAdapterSpec mapKeyExpression(org.springframework.expression.Expression mapKeyExpression) Specify the expression used as the key for Map and Properties entries.- Parameters:
mapKeyExpression- the mapKeyExpression- Returns:
- the spec
- See Also:
-
mapKeyFunction
public RedisStoreOutboundChannelAdapterSpec mapKeyFunction(Function<org.springframework.messaging.Message<?>, String> mapKeyFunction) Specify the function used as the key for Map and Properties entries.- Parameters:
mapKeyFunction- the mapKeyFunction- Returns:
- the spec
- See Also:
-
zsetIncrementScoreExpression
public RedisStoreOutboundChannelAdapterSpec zsetIncrementScoreExpression(String zsetIncrementScoreExpression) Specify the SPEL expression used as the INCR flag for the ZADD command in case of ZSet collection.- Parameters:
zsetIncrementScoreExpression- the zsetIncrementScoreExpression- Returns:
- the spec
- See Also:
-
zsetIncrementScoreExpression
public RedisStoreOutboundChannelAdapterSpec zsetIncrementScoreExpression(org.springframework.expression.Expression zsetIncrementScoreExpression) Specify the expression used as the INCR flag for the ZADD command in case of ZSet collection.- Parameters:
zsetIncrementScoreExpression- the zsetIncrementScoreExpression- Returns:
- the spec
- See Also:
-
zsetIncrementScoreFunction
public RedisStoreOutboundChannelAdapterSpec zsetIncrementScoreFunction(Function<org.springframework.messaging.Message<?>, Boolean> zsetIncrementScoreFunction) Specify the function used as the INCR flag for the ZADD command in case of ZSet collection.- Parameters:
zsetIncrementScoreFunction- the zsetIncrementScoreFunction- Returns:
- the spec
- See Also:
-