Package org.springframework.batch.core.step.skip

# Class AlwaysSkipItemSkipPolicy

java.lang.Object
org.springframework.batch.core.step.skip.AlwaysSkipItemSkipPolicy

All Implemented Interfaces:
  `SkipPolicy`

public class AlwaysSkipItemSkipPolicy extends Object implements SkipPolicy
Implementation of the `SkipPolicy` interface that will always return that an item should be skipped.

Author:
  Ben Hale, Lucas Ward, Mahmoud Ben Hassine

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AlwaysSkipItemSkipPolicy()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `shouldSkip(Throwable t, long 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 Details

  - ### AlwaysSkipItemSkipPolicy

    public AlwaysSkipItemSkipPolicy()

- ## Method Details

  - ### shouldSkip

    public boolean shouldSkip(Throwable t, long 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&lt;0` to probe for exception types that are skippable, so implementations should be able to handle gracefully the case where `skipCount&lt;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.