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.Serializable
Encapsulation 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()
long
getJobId()
int
getSequence()
StepContribution
getStepContribution()
java.lang.String
toString()
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
StepContribution
for this chunk
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()