Example usage for org.springframework.batch.integration.partition MessageChannelPartitionHandler afterPropertiesSet

List of usage examples for org.springframework.batch.integration.partition MessageChannelPartitionHandler afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.batch.integration.partition MessageChannelPartitionHandler afterPropertiesSet.

Prototype

@Override
    public void afterPropertiesSet() throws Exception 

Source Link

Usage

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;
}