类 ChunkContext
- java.lang.Object
- org.springframework.core.AttributeAccessorSupport
- org.springframework.batch.core.scope.context.ChunkContext
- 所有已实现的接口:
java.io.Serializable
,org.springframework.core.AttributeAccessor
public class ChunkContext extends org.springframework.core.AttributeAccessorSupport
Context object for weakly typed data stored for the duration of a chunk (usually a group of items processed together in a transaction). If there is a rollback and the chunk is retried the same context will be associated with it.- 作者:
- Dave Syer
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 ChunkContext(StepContext stepContext)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StepContext
getStepContext()
boolean
isComplete()
void
setComplete()
Setter for the flag to signal complete processing of a chunk.java.lang.String
toString()
构造器详细资料
ChunkContext
public ChunkContext(StepContext stepContext)
- 参数:
stepContext
- the current step context
方法详细资料
getStepContext
public StepContext getStepContext()
- 返回:
- the current step context
isComplete
public boolean isComplete()
- 返回:
- true if there is no more processing to be done on this chunk
setComplete
public void setComplete()
Setter for the flag to signal complete processing of a chunk.
toString
public java.lang.String toString()
- 覆盖:
toString
在类中java.lang.Object