Class RedisQueueInboundChannelAdapterSpec

java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<RedisQueueInboundChannelAdapterSpec, RedisQueueMessageDrivenEndpoint>
org.springframework.integration.dsl.MessageProducerSpec<RedisQueueInboundChannelAdapterSpec, RedisQueueMessageDrivenEndpoint>
org.springframework.integration.redis.dsl.RedisQueueInboundChannelAdapterSpec
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<RedisQueueMessageDrivenEndpoint>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class RedisQueueInboundChannelAdapterSpec extends org.springframework.integration.dsl.MessageProducerSpec<RedisQueueInboundChannelAdapterSpec, RedisQueueMessageDrivenEndpoint>
A MessageProducerSpec for a RedisQueueMessageDrivenEndpoint.
Since:
7.1
  • Field Summary

    Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    logger, PARSER, target

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RedisQueueInboundChannelAdapterSpec(String queueName, org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    expectMessage(boolean expectMessage)
    Specify whether expects data from the Redis queue to contain entire Message instances.
    receiveDuration(Duration receiveTimeout)
    Specify the timeout for 'pop' operation to wait for a Redis message from the Redis Queue.
    receiveTimeout(long receiveTimeout)
    Specify the timeout for 'pop' operation to wait for a Redis message from the Redis Queue.
    recoveryInterval(long recoveryInterval)
    Specify the time in milliseconds for the underlying listening task should sleep after exceptions on the 'pop' operation.
    rightPop(boolean rightPop)
    Specify use "right pop" or "left pop" to read messages from the Redis Queue.
    serializer(org.springframework.data.redis.serializer.RedisSerializer<?> serializer)
    Specify the RedisSerializer to deserialize the body of Redis messages.
    taskExecutor(Executor taskExecutor)
    Specify an Executor for the underlying listening task.

    Methods inherited from class org.springframework.integration.dsl.MessageProducerSpec

    autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, observationConvention, outputChannel, outputChannel, phase, role, sendTimeout, shouldTrack

    Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    _this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.beans.factory.FactoryBean

    isSingleton

    Methods inherited from interface org.springframework.context.SmartLifecycle

    isPauseable, pause, restart