类 ItemStreamSupport
- java.lang.Object
- org.springframework.batch.item.ItemStreamSupport
- 所有已实现的接口:
ItemStream
- 直接已知子类:
AbstractItemStreamItemReader,AbstractItemStreamItemWriter,CheckpointSupport,ChunkMonitor,TradeWriter
public abstract class ItemStreamSupport extends java.lang.Object implements ItemStream
Empty method implementation ofItemStream.- 作者:
- Dave Syer, Dean de Bree
构造器概要
构造器 构造器 说明 ItemStreamSupport()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()No-op.java.lang.StringgetExecutionContextKey(java.lang.String key)voidopen(ExecutionContext executionContext)No-op.protected voidsetExecutionContextName(java.lang.String name)voidsetName(java.lang.String name)The name of the component which will be used as a stem for keys in theExecutionContext.voidupdate(ExecutionContext executionContext)Return emptyExecutionContext.
构造器详细资料
ItemStreamSupport
public ItemStreamSupport()
方法详细资料
close
public void close()
No-op.- 指定者:
close在接口中ItemStream- 另请参阅:
ItemStream.close()
open
public void open(ExecutionContext executionContext)
No-op.- 指定者:
open在接口中ItemStream- 参数:
executionContext- current step'sExecutionContext. Will be the executionContext from the last run of the step on a restart.- 另请参阅:
ItemStream.open(ExecutionContext)
update
public void update(ExecutionContext executionContext)
Return emptyExecutionContext.- 指定者:
update在接口中ItemStream- 参数:
executionContext- to be updated- 另请参阅:
ItemStream.update(ExecutionContext)
setName
public void setName(java.lang.String name)
The name of the component which will be used as a stem for keys in theExecutionContext. Subclasses should provide a default value, e.g. the short form of the class name.- 参数:
name- the name for the component
setExecutionContextName
protected void setExecutionContextName(java.lang.String name)
getExecutionContextKey
public java.lang.String getExecutionContextKey(java.lang.String key)