Class ItemStreamSupport

java.lang.Object
org.springframework.batch.item.ItemStreamSupport
All Implemented Interfaces:
ItemStream
Direct Known Subclasses:
AbstractItemStreamItemReader, AbstractItemStreamItemWriter, ChunkMonitor

@Deprecated(since="5.0", forRemoval=true) public abstract class ItemStreamSupport extends Object implements ItemStream
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0 in favor of using default methods in the ItemStream interface. Scheduled for removal in 5.2.
Empty method implementation of ItemStream.
Author:
Dave Syer, Dean de Bree, Mahmoud Ben Hassine
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    No-op.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    open(ExecutionContext executionContext)
    Deprecated, for removal: This API element is subject to removal in a future version.
    No-op.
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    The name of the component which will be used as a stem for keys in the ExecutionContext.
    void
    update(ExecutionContext executionContext)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return empty ExecutionContext.

    Methods inherited from class java.lang.Object

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

    • ItemStreamSupport

      public ItemStreamSupport()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • close

      public void close()
      Deprecated, for removal: This API element is subject to removal in a future version.
      No-op.
      Specified by:
      close in interface ItemStream
      See Also:
    • open

      public void open(ExecutionContext executionContext)
      Deprecated, for removal: This API element is subject to removal in a future version.
      No-op.
      Specified by:
      open in interface ItemStream
      Parameters:
      executionContext - current step's ExecutionContext. Will be the executionContext from the last run of the step on a restart.
      See Also:
    • update

      public void update(ExecutionContext executionContext)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return empty ExecutionContext.
      Specified by:
      update in interface ItemStream
      Parameters:
      executionContext - to be updated
      See Also:
    • setName

      public void setName(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      The name of the component which will be used as a stem for keys in the ExecutionContext. Subclasses should provide a default value, e.g. the short form of the class name.
      Parameters:
      name - the name for the component
    • setExecutionContextName

      protected void setExecutionContextName(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getExecutionContextKey

      public String getExecutionContextKey(String key)
      Deprecated, for removal: This API element is subject to removal in a future version.