Class RedisStreamOutboundChannelAdapterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<S,ReactiveMessageHandlerAdapter>
org.springframework.integration.dsl.ReactiveMessageHandlerSpec<RedisStreamOutboundChannelAdapterSpec,ReactiveRedisStreamMessageHandler>
org.springframework.integration.redis.dsl.RedisStreamOutboundChannelAdapterSpec
- All Implemented Interfaces:
DisposableBean,FactoryBean<ReactiveMessageHandlerAdapter>,InitializingBean,Lifecycle,Phased,SmartLifecycle,ComponentsRegistration
public class RedisStreamOutboundChannelAdapterSpec
extends ReactiveMessageHandlerSpec<RedisStreamOutboundChannelAdapterSpec,ReactiveRedisStreamMessageHandler>
- Since:
- 7.1
- Author:
- Jiandong Ma
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.ReactiveMessageHandlerSpec
reactiveMessageHandlerFields 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
ConstructorsModifierConstructorDescriptionprotectedRedisStreamOutboundChannelAdapterSpec(ReactiveRedisConnectionFactory connectionFactory, String streamKey) protectedRedisStreamOutboundChannelAdapterSpec(ReactiveRedisConnectionFactory connectionFactory, Expression streamExpression) -
Method Summary
Modifier and TypeMethodDescriptionaddOptionsFunction(Function<Message<?>, RedisStreamCommands.XAddOptions> addOptionsFunction) Specify the function to create aRedisStreamCommands.XAddOptions.extractPayload(boolean extractPayload) Specify whether extract payload.hashMapper(HashMapper<String, ?, ?> hashMapper) Specify the hashMapper forReactiveStreamOperations.serializationContext(RedisSerializationContext<String, ?> serializationContext) Specify the serialization context.Methods inherited from class org.springframework.integration.dsl.ReactiveMessageHandlerSpec
getComponentsToRegisterMethods 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
-
RedisStreamOutboundChannelAdapterSpec
protected RedisStreamOutboundChannelAdapterSpec(ReactiveRedisConnectionFactory connectionFactory, String streamKey) -
RedisStreamOutboundChannelAdapterSpec
protected RedisStreamOutboundChannelAdapterSpec(ReactiveRedisConnectionFactory connectionFactory, Expression streamExpression)
-
-
Method Details
-
serializationContext
public RedisStreamOutboundChannelAdapterSpec serializationContext(RedisSerializationContext<String, ?> serializationContext) Specify the serialization context.- Parameters:
serializationContext- the serializationContext- Returns:
- the spec
- See Also:
-
hashMapper
Specify the hashMapper forReactiveStreamOperations.- Parameters:
hashMapper- the hashMapper- Returns:
- the spec
- See Also:
-
extractPayload
Specify whether extract payload.- Parameters:
extractPayload- the extractPayload- Returns:
- the spec
- See Also:
-
addOptionsFunction
public RedisStreamOutboundChannelAdapterSpec addOptionsFunction(Function<Message<?>, RedisStreamCommands.XAddOptions> addOptionsFunction) Specify the function to create aRedisStreamCommands.XAddOptions.- Parameters:
addOptionsFunction- the addOptionsFunction- Returns:
- the spec
- See Also:
-