Class SkipWrapper<T>

java.lang.Object
org.springframework.batch.infrastructure.item.SkipWrapper<T>

@NullUnmarked @Deprecated(since="6.0", forRemoval=true) public class SkipWrapper<T> extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 6.0 with no replacement. Scheduled for removal in 7.0.
Wrapper for an item and its exception if it failed processing.
Author:
Dave Syer, Mahmoud Ben Hassine
  • Constructor Summary

    Constructors
    Constructor
    Description
    SkipWrapper(T item)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Public getter for the exception.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Public getter for the item.
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SkipWrapper

      public SkipWrapper(T item)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      item - the item being wrapped.
    • SkipWrapper

      public SkipWrapper(T item, @Nullable Throwable e)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getException

      @Nullable public Throwable getException()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Public getter for the exception.
      Returns:
      the exception
    • getItem

      public T getItem()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Public getter for the item.
      Returns:
      the item
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object