org.springframework.batch.core.partition.support
Interface PartitionNameProvider


public interface PartitionNameProvider

Optional interface for Partitioner implementations that need to use a custom naming scheme for partitions. It is not necessary to implement this interface if a partitioner extends SimplePartitioner and re-uses the default partition names.

If a partitioner does implement this interface, however, on a restart the Partitioner.partition(int) method will not be called again, instead the partitions will be re-used from the last execution, and matched by name with the results of getPartitionNames(int). This can be a useful performance optimisation if the partitioning process is expensive.

Since:
2.1.3
Author:
Dave Syer

Method Summary
 Collection<String> getPartitionNames(int gridSize)
           
 

Method Detail

getPartitionNames

Collection<String> getPartitionNames(int gridSize)


Copyright © 2013 SpringSource. All Rights Reserved.