org.springframework.batch.repeat.support
Class AsynchronousRepeatTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.repeat.support.AbstractTradeBatchTests
          extended by org.springframework.batch.repeat.support.AsynchronousRepeatTests

public class AsynchronousRepeatTests
extends AbstractTradeBatchTests


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.batch.repeat.support.AbstractTradeBatchTests
AbstractTradeBatchTests.TradeItemReader, AbstractTradeBatchTests.TradeMapper, AbstractTradeBatchTests.TradeWriter
 
Field Summary
 
Fields inherited from class org.springframework.batch.repeat.support.AbstractTradeBatchTests
NUMBER_OF_ITEMS, processor, provider
 
Constructor Summary
AsynchronousRepeatTests()
           
 
Method Summary
 void testMultiThreadAsynchronousExecution()
          Run a batch with a single template that itself has an asynch task executor.
 void testSingleThreadAsynchronousExecution()
          Wrap an otherwise synchronous batch in a callback to an asynchronous template.
 
Methods inherited from class org.springframework.batch.repeat.support.AbstractTradeBatchTests
setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousRepeatTests

public AsynchronousRepeatTests()
Method Detail

testMultiThreadAsynchronousExecution

public void testMultiThreadAsynchronousExecution()
                                          throws Exception
Run a batch with a single template that itself has an asynch task executor. The result is a batch that runs in multiple threads (up to the throttle limit of the template).

Throws:
Exception

testSingleThreadAsynchronousExecution

public void testSingleThreadAsynchronousExecution()
                                           throws Exception
Wrap an otherwise synchronous batch in a callback to an asynchronous template.

Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.