Package org.springframework.integration.endpoint

Examples of org.springframework.integration.endpoint.MessageProducerSupport


    String queueName = "queue." + name;
    int partitionIndex = accessor.getPartitionIndex();
    if (partitionIndex >= 0) {
      queueName += "-" + partitionIndex;
    }
    MessageProducerSupport adapter = createInboundAdapter(accessor, queueName);
    doRegisterConsumer(name, name + (partitionIndex >= 0 ? "-" + partitionIndex : ""), moduleInputChannel, adapter,
        accessor);
    bindExistingProducerDirectlyIfPossible(name, moduleInputChannel);
  }
View Full Code Here


        accessor);
    bindExistingProducerDirectlyIfPossible(name, moduleInputChannel);
  }

  private MessageProducerSupport createInboundAdapter(RedisPropertiesAccessor accessor, String queueName) {
    MessageProducerSupport adapter;
    int concurrency = accessor.getConcurrency(this.defaultConcurrency);
    concurrency = concurrency > 0 ? concurrency : 1;
    if (concurrency == 1) {
      RedisQueueMessageDrivenEndpoint single = new RedisQueueMessageDrivenEndpoint(queueName,
          this.connectionFactory);
View Full Code Here

    queue.setBeanFactory(this.getBeanFactory());
    queue.afterPropertiesSet();
    String replyQueueName = name + ".replies." + this.getIdGenerator().generateId();
    RedisPropertiesAccessor accessor = new RedisPropertiesAccessor(properties);
    this.doRegisterProducer(name, requests, queue, replyQueueName, accessor);
    MessageProducerSupport adapter = createInboundAdapter(accessor, replyQueueName);
    this.doRegisterConsumer(name, name, replies, adapter, accessor);
  }
View Full Code Here

    if (logger.isInfoEnabled()) {
      logger.info("binding replier: " + name);
    }
    validateConsumerProperties(name, properties, SUPPORTED_REPLYING_CONSUMER_PROPERTIES);
    RedisPropertiesAccessor accessor = new RedisPropertiesAccessor(properties);
    MessageProducerSupport adapter = createInboundAdapter(accessor, "queue." + name + ".requests");
    this.doRegisterConsumer(name, name, requests, adapter, accessor);

    RedisQueueOutboundChannelAdapter replyQueue = new RedisQueueOutboundChannelAdapter(
        RedisMessageBus.parser.parseExpression("headers['" + REPLY_TO + "']"),
        this.connectionFactory);
View Full Code Here

TOP

Related Classes of org.springframework.integration.endpoint.MessageProducerSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.