org.springframework.batch.integration.chunk
Class ChunkResponse

java.lang.Object
  extended by org.springframework.batch.integration.chunk.ChunkResponse
All Implemented Interfaces:
Serializable

public class ChunkResponse
extends Object
implements Serializable

Encapsulates a response to processing a chunk of items, summarising the result as a StepContribution.

Author:
Dave Syer
See Also:
Serialized Form

Constructor Summary
ChunkResponse(boolean status, int sequence, Long jobId, StepContribution stepContribution)
           
ChunkResponse(boolean status, int sequence, Long jobId, StepContribution stepContribution, String message)
           
ChunkResponse(boolean status, int sequence, Long jobId, StepContribution stepContribution, String message, boolean redelivered)
           
ChunkResponse(ChunkResponse input, boolean redelivered)
           
ChunkResponse(int sequence, Long jobId, StepContribution stepContribution)
           
 
Method Summary
 Long getJobId()
           
 String getMessage()
           
 int getSequence()
           
 StepContribution getStepContribution()
           
 boolean isRedelivered()
           
 boolean isSuccessful()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChunkResponse

public ChunkResponse(int sequence,
                     Long jobId,
                     StepContribution stepContribution)

ChunkResponse

public ChunkResponse(boolean status,
                     int sequence,
                     Long jobId,
                     StepContribution stepContribution)

ChunkResponse

public ChunkResponse(boolean status,
                     int sequence,
                     Long jobId,
                     StepContribution stepContribution,
                     String message)

ChunkResponse

public ChunkResponse(ChunkResponse input,
                     boolean redelivered)

ChunkResponse

public ChunkResponse(boolean status,
                     int sequence,
                     Long jobId,
                     StepContribution stepContribution,
                     String message,
                     boolean redelivered)
Method Detail

getStepContribution

public StepContribution getStepContribution()

getJobId

public Long getJobId()

getSequence

public int getSequence()

isSuccessful

public boolean isSuccessful()

isRedelivered

public boolean isRedelivered()

getMessage

public String getMessage()

toString

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


Copyright © 2011. All Rights Reserved.