Class SimpleCompletionPolicy

All Implemented Interfaces:
CompletionPolicy

public class SimpleCompletionPolicy extends DefaultResultCompletionPolicy
Policy for terminating a batch after a fixed number of operations. Internal state is maintained and a counter incremented, so successful use of this policy requires that isComplete() is only called once per batch item. Using the standard RepeatTemplate should ensure this contract is kept, but it needs to be carefully monitored.
Author:
Dave Syer