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:
DisposableBean,FactoryBean<RedisStoreWritingMessageHandler>,InitializingBean,Lifecycle,Phased,SmartLifecycle
public class RedisStoreOutboundChannelAdapterSpec
extends MessageHandlerSpec<RedisStoreOutboundChannelAdapterSpec, RedisStoreWritingMessageHandler>
- 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
ConstructorsModifierConstructorDescriptionprotectedRedisStoreOutboundChannelAdapterSpec(RedisConnectionFactory connectionFactory) protectedRedisStoreOutboundChannelAdapterSpec(RedisTemplate<String, ?> redisTemplate) -
Method Summary
Modifier and TypeMethodDescriptioncollectionType(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(Expression keyExpression) Specify an Expression to be used to determine the key for the Redis store.keyFunction(Function<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(Expression mapKeyExpression) Specify the expression used as the key for Map and Properties entries.mapKeyFunction(Function<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(Expression zsetIncrementScoreExpression) Specify the expression used as the INCR flag for the ZADD command in case of ZSet collection.zsetIncrementScoreFunction(Function<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 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
-
RedisStoreOutboundChannelAdapterSpec
-
RedisStoreOutboundChannelAdapterSpec
-
-
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
Specify an Expression to be used to determine the key for the Redis store.- Parameters:
keyExpression- the keyExpression- Returns:
- the spec
- See Also:
-
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(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
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<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(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<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:
-