messageChannelPartitionHandler.setStepName("step1"); messageChannelPartitionHandler.setTimeout(1000L); messageChannelPartitionHandler.afterPropertiesSet();
messageChannelPartitionHandler.setStepName("step1"); messageChannelPartitionHandler.setPollInterval(500L); messageChannelPartitionHandler.afterPropertiesSet();
partitionHandler.setStepName(getStepName()); partitionHandler.setGridSize(getGridSize()); partitionHandler.setMessagingOperations(this.messagingTemplate);
@Bean public PartitionHandler partitionHandler(MessagingTemplate messagingTemplate) throws Exception { MessageChannelPartitionHandler partitionHandler = new MessageChannelPartitionHandler(); partitionHandler.setStepName("slaveStep"); partitionHandler.setGridSize(GRID_SIZE); partitionHandler.setMessagingOperations(messagingTemplate); partitionHandler.setPollInterval(5000l); partitionHandler.setJobExplorer(this.jobExplorer); partitionHandler.afterPropertiesSet(); return partitionHandler; }