org.springframework.batch.integration.chunk
Class ChunkMessageChannelItemWriter<T>
java.lang.Object
org.springframework.batch.core.listener.StepExecutionListenerSupport
org.springframework.batch.integration.chunk.ChunkMessageChannelItemWriter<T>
- All Implemented Interfaces:
- org.springframework.batch.core.StepExecutionListener, org.springframework.batch.core.StepListener, org.springframework.batch.item.ItemStream, org.springframework.batch.item.ItemWriter<T>
public class ChunkMessageChannelItemWriter<T>
- extends org.springframework.batch.core.listener.StepExecutionListenerSupport
- implements org.springframework.batch.item.ItemWriter<T>, org.springframework.batch.item.ItemStream
|
Method Summary |
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution)
|
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution)
|
void |
close()
|
void |
open(org.springframework.batch.item.ExecutionContext executionContext)
|
void |
setMessagingGateway(org.springframework.integration.gateway.MessagingGateway messagingGateway)
|
void |
setThrottleLimit(long throttleLimit)
Public setter for the throttle limit. |
void |
update(org.springframework.batch.item.ExecutionContext executionContext)
|
void |
write(java.util.List<? extends T> items)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkMessageChannelItemWriter
public ChunkMessageChannelItemWriter()
setThrottleLimit
public void setThrottleLimit(long throttleLimit)
- Public setter for the throttle limit. This limits the number of pending
requests for chunk processing to avoid overwhelming the receivers.
- Parameters:
throttleLimit - the throttle limit to set
setMessagingGateway
public void setMessagingGateway(org.springframework.integration.gateway.MessagingGateway messagingGateway)
write
public void write(java.util.List<? extends T> items)
throws java.lang.Exception
- Specified by:
write in interface org.springframework.batch.item.ItemWriter<T>
- Throws:
java.lang.Exception
beforeStep
public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
- Specified by:
beforeStep in interface org.springframework.batch.core.StepExecutionListener- Overrides:
beforeStep in class org.springframework.batch.core.listener.StepExecutionListenerSupport
afterStep
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
- Specified by:
afterStep in interface org.springframework.batch.core.StepExecutionListener- Overrides:
afterStep in class org.springframework.batch.core.listener.StepExecutionListenerSupport
close
public void close()
throws org.springframework.batch.item.ItemStreamException
- Specified by:
close in interface org.springframework.batch.item.ItemStream
- Throws:
org.springframework.batch.item.ItemStreamException
open
public void open(org.springframework.batch.item.ExecutionContext executionContext)
throws org.springframework.batch.item.ItemStreamException
- Specified by:
open in interface org.springframework.batch.item.ItemStream
- Throws:
org.springframework.batch.item.ItemStreamException
update
public void update(org.springframework.batch.item.ExecutionContext executionContext)
throws org.springframework.batch.item.ItemStreamException
- Specified by:
update in interface org.springframework.batch.item.ItemStream
- Throws:
org.springframework.batch.item.ItemStreamException
Copyright © 2009. All Rights Reserved.