类 CountingCompletionPolicy

  • 所有已实现的接口:
    CompletionPolicy

    public abstract class CountingCompletionPolicy
    extends DefaultResultCompletionPolicy
    Abstract base class for policies that need to count the number of occurrences of some event (e.g. an exception type in the context), and terminate based on a limit for the counter. The value of the counter can be stored between batches in a nested context, so that the termination decision is based on the aggregate of a number of sibling batches.
    作者:
    Dave Syer