Class RedisStreamOutboundChannelAdapterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<RedisStreamOutboundChannelAdapterSpec, org.springframework.integration.handler.ReactiveMessageHandlerAdapter>
org.springframework.integration.dsl.MessageHandlerSpec<RedisStreamOutboundChannelAdapterSpec, org.springframework.integration.handler.ReactiveMessageHandlerAdapter>
org.springframework.integration.dsl.ReactiveMessageHandlerSpec<RedisStreamOutboundChannelAdapterSpec, ReactiveRedisStreamMessageHandler>
org.springframework.integration.redis.dsl.RedisStreamOutboundChannelAdapterSpec
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.springframework.integration.handler.ReactiveMessageHandlerAdapter>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, org.springframework.integration.dsl.ComponentsRegistration
public class RedisStreamOutboundChannelAdapterSpec
extends org.springframework.integration.dsl.ReactiveMessageHandlerSpec<RedisStreamOutboundChannelAdapterSpec, ReactiveRedisStreamMessageHandler>
A
ReactiveMessageHandlerSpec for a ReactiveRedisStreamMessageHandler.- Since:
- 7.1
-
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(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory, String streamKey) protectedRedisStreamOutboundChannelAdapterSpec(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory, org.springframework.expression.Expression streamExpression) -
Method Summary
Modifier and TypeMethodDescriptionaddOptionsFunction(Function<org.springframework.messaging.Message<?>, org.springframework.data.redis.connection.RedisStreamCommands.XAddOptions> addOptionsFunction) Specify the function to create aRedisStreamCommands.XAddOptions.extractPayload(boolean extractPayload) Specify whether extract payload.hashMapper(org.springframework.data.redis.hash.HashMapper<String, ?, ?> hashMapper) Specify the hashMapper forReactiveStreamOperations.serializationContext(org.springframework.data.redis.serializer.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 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
-
RedisStreamOutboundChannelAdapterSpec
protected RedisStreamOutboundChannelAdapterSpec(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory, String streamKey) -
RedisStreamOutboundChannelAdapterSpec
protected RedisStreamOutboundChannelAdapterSpec(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory, org.springframework.expression.Expression streamExpression)
-
-
Method Details
-
serializationContext
public RedisStreamOutboundChannelAdapterSpec serializationContext(org.springframework.data.redis.serializer.RedisSerializationContext<String, ?> serializationContext) Specify the serialization context.- Parameters:
serializationContext- the serializationContext- Returns:
- the spec
- See Also:
-
hashMapper
public RedisStreamOutboundChannelAdapterSpec hashMapper(org.springframework.data.redis.hash.HashMapper<String, ?, ?> 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<org.springframework.messaging.Message<?>, org.springframework.data.redis.connection.RedisStreamCommands.XAddOptions> addOptionsFunction) Specify the function to create aRedisStreamCommands.XAddOptions.- Parameters:
addOptionsFunction- the addOptionsFunction- Returns:
- the spec
- See Also:
-