类 WorkerConfiguration
- java.lang.Object
- org.springframework.batch.sample.remotechunking.WorkerConfiguration
@Configuration @EnableBatchProcessing @EnableBatchIntegration @EnableIntegration @PropertySource("classpath:remote-chunking.properties") public class WorkerConfiguration extends java.lang.Object
This configuration class is for the worker side of the remote chunking sample. It uses theRemoteChunkingWorkerBuilder
to configure anIntegrationFlow
in order to:- receive requests from the master
- process chunks with the configured item processor and writer
- send replies to the master
- 作者:
- Mahmoud Ben Hassine
构造器概要
构造器 构造器 说明 WorkerConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.apache.activemq.ActiveMQConnectionFactory
connectionFactory()
org.springframework.integration.dsl.IntegrationFlow
inboundFlow(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
ItemProcessor<java.lang.Integer,java.lang.Integer>
itemProcessor()
ItemWriter<java.lang.Integer>
itemWriter()
org.springframework.integration.dsl.IntegrationFlow
outboundFlow(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
org.springframework.integration.channel.DirectChannel
replies()
org.springframework.integration.channel.DirectChannel
requests()
org.springframework.integration.dsl.IntegrationFlow
workerIntegrationFlow()
构造器详细资料
WorkerConfiguration
public WorkerConfiguration()
方法详细资料
connectionFactory
@Bean public org.apache.activemq.ActiveMQConnectionFactory connectionFactory()
requests
@Bean public org.springframework.integration.channel.DirectChannel requests()
inboundFlow
@Bean public org.springframework.integration.dsl.IntegrationFlow inboundFlow(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
replies
@Bean public org.springframework.integration.channel.DirectChannel replies()
outboundFlow
@Bean public org.springframework.integration.dsl.IntegrationFlow outboundFlow(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
itemProcessor
@Bean public ItemProcessor<java.lang.Integer,java.lang.Integer> itemProcessor()
itemWriter
@Bean public ItemWriter<java.lang.Integer> itemWriter()
workerIntegrationFlow
@Bean public org.springframework.integration.dsl.IntegrationFlow workerIntegrationFlow()