public class ChunkMessageChannelItemWriter<T> extends org.springframework.batch.core.listener.StepExecutionListenerSupport implements org.springframework.batch.item.ItemWriter<T>, org.springframework.batch.item.ItemStream, StepContributionSource
Constructor and Description |
---|
ChunkMessageChannelItemWriter() |
Modifier and Type | Method and Description |
---|---|
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
close() |
Collection<org.springframework.batch.core.StepContribution> |
getStepContributions()
Get the currently available contributions and drain the source.
|
void |
open(org.springframework.batch.item.ExecutionContext executionContext) |
void |
setMaxWaitTimeouts(int maxWaitTimeouts)
The maximum number of times to wait at the end of a step for a non-null result from the remote workers.
|
void |
setMessagingOperations(org.springframework.integration.core.MessagingOperations messagingGateway) |
void |
setReplyChannel(org.springframework.integration.core.PollableChannel replyChannel) |
void |
setThrottleLimit(long throttleLimit)
Public setter for the throttle limit.
|
void |
update(org.springframework.batch.item.ExecutionContext executionContext) |
void |
write(List<? extends T> items) |
public void setMaxWaitTimeouts(int maxWaitTimeouts)
maxWaitTimeouts
- the maximum number of wait timeoutspublic void setThrottleLimit(long throttleLimit)
throttleLimit
- the throttle limit to setpublic void setMessagingOperations(org.springframework.integration.core.MessagingOperations messagingGateway)
public void setReplyChannel(org.springframework.integration.core.PollableChannel replyChannel)
public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep
in interface org.springframework.batch.core.StepExecutionListener
beforeStep
in class org.springframework.batch.core.listener.StepExecutionListenerSupport
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep
in interface org.springframework.batch.core.StepExecutionListener
afterStep
in class org.springframework.batch.core.listener.StepExecutionListenerSupport
public void close() throws org.springframework.batch.item.ItemStreamException
close
in interface org.springframework.batch.item.ItemStream
org.springframework.batch.item.ItemStreamException
public void open(org.springframework.batch.item.ExecutionContext executionContext) throws org.springframework.batch.item.ItemStreamException
open
in interface org.springframework.batch.item.ItemStream
org.springframework.batch.item.ItemStreamException
public void update(org.springframework.batch.item.ExecutionContext executionContext) throws org.springframework.batch.item.ItemStreamException
update
in interface org.springframework.batch.item.ItemStream
org.springframework.batch.item.ItemStreamException
public Collection<org.springframework.batch.core.StepContribution> getStepContributions()
StepContributionSource
getStepContributions
in interface StepContributionSource
StepContribution
instancesCopyright © 2015. All rights reserved.