List of usage examples for org.springframework.batch.integration.partition MessageChannelPartitionHandler setJobExplorer
public void setJobExplorer(JobExplorer jobExplorer)
From source file:io.spring.batch.configuration.JobConfiguration.java
@Bean public PartitionHandler partitionHandler() throws Exception { MessageChannelPartitionHandler partitionHandler = new MessageChannelPartitionHandler(); partitionHandler.setStepName("slaveStep"); partitionHandler.setGridSize(GRID_SIZE); partitionHandler.setMessagingOperations(messageTemplate()); partitionHandler.setPollInterval(5000l); partitionHandler.setJobExplorer(this.jobExplorer); partitionHandler.afterPropertiesSet(); return partitionHandler; }