Class ChunkRequest<T>
- java.lang.Object
- org.springframework.batch.integration.chunk.ChunkRequest<T>
- Type Parameters:
T- the type of the items to process
- All Implemented Interfaces:
java.io.Serializable
public class ChunkRequest<T> extends java.lang.Object implements java.io.SerializableEncapsulation of a chunk of items to be processed remotely as part of a step execution.- Author:
- Dave Syer
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description ChunkRequest(int sequence, java.util.Collection<? extends T> items, long jobId, StepContribution stepContribution)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends T>getItems()longgetJobId()intgetSequence()StepContributiongetStepContribution()java.lang.StringtoString()
Constructor Detail
ChunkRequest
public ChunkRequest(int sequence, java.util.Collection<? extends T> items, long jobId, StepContribution stepContribution)
Method Detail
getJobId
public long getJobId()
getItems
public java.util.Collection<? extends T> getItems()
getSequence
public int getSequence()
getStepContribution
public StepContribution getStepContribution()
- Returns:
- the
StepContributionfor this chunk
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()