Package org.springframework.integration.channel

Examples of org.springframework.integration.channel.ExecutorChannel


    return splitter;
  }

  @Bean
  public MessageChannel headerEnricherChannel() {
    return new ExecutorChannel(Executors.newCachedThreadPool());
  }
View Full Code Here


      public void handleMessage(Message<?> message) throws MessagingException {
        requestChannel.send(message);
      }
    });

    ExecutorChannel replyChannel = this.findOrCreateRequestReplyChannel("replier." + name);
    replyChannel.subscribe(new MessageHandler() {

      @Override
      public void handleMessage(Message<?> message) throws MessagingException {
        replies.send(message);
      }
View Full Code Here

      }
    });
  }

  private synchronized ExecutorChannel findOrCreateRequestReplyChannel(String name) {
    ExecutorChannel channel = this.requestReplyChannels.get(name);
    if (channel == null) {
      channel = new ExecutorChannel(this.executor);
      channel.setBeanFactory(getBeanFactory());
      this.requestReplyChannels.put(name, channel);
    }
    return channel;
  }
View Full Code Here

TOP

Related Classes of org.springframework.integration.channel.ExecutorChannel

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.