org.springframework.batch.integration.chunk
Class ChunkRequest<T>

java.lang.Object
  extended by org.springframework.batch.integration.chunk.ChunkRequest<T>
Type Parameters:
T - the type of the items to process
All Implemented Interfaces:
Serializable

public class ChunkRequest<T>
extends Object
implements 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
ChunkRequest(int sequence, Collection<? extends T> items, long jobId, StepContribution stepContribution)
           
 
Method Summary
 Collection<? extends T> getItems()
           
 long getJobId()
           
 int getSequence()
           
 StepContribution getStepContribution()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChunkRequest

public ChunkRequest(int sequence,
                    Collection<? extends T> items,
                    long jobId,
                    StepContribution stepContribution)
Method Detail

getJobId

public long getJobId()

getItems

public Collection<? extends T> getItems()

getSequence

public int getSequence()

getStepContribution

public StepContribution getStepContribution()
Returns:
the StepContribution for this chunk

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2011. All Rights Reserved.