Class NeverSkipItemSkipPolicy

  • All Implemented Interfaces:
    SkipPolicy

    public class NeverSkipItemSkipPolicy
    extends java.lang.Object
    implements SkipPolicy
    SkipPolicy implementation that always returns false, indicating that an item should not be skipped.
    Author:
    Lucas Ward
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleanshouldSkip​(java.lang.Throwable t, int skipCount)
      Returns true or false, indicating whether or not processing should continue with the given throwable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NeverSkipItemSkipPolicy

        public NeverSkipItemSkipPolicy()
    • Method Detail

      • shouldSkip

        public boolean shouldSkip​(java.lang.Throwable t,
                                  int skipCount)
        Description copied from interface: SkipPolicy
        Returns true or false, indicating whether or not processing should continue with the given throwable. Clients may use skipCount<0 to probe for exception types that are skippable, so implementations should be able to handle gracefully the case where skipCount<0. Implementations should avoid throwing any undeclared exceptions.
        Specified by:
        shouldSkip in interface SkipPolicy
        Parameters:
        t - exception encountered while processing
        skipCount - currently running count of skips
        Returns:
        true if processing should continue, false otherwise.