RESOLVED - issue BATCH-1369: Change semantics of @AfterChunk to execute outside transaction
http://jira.springframework.org/browse/BATCH-1369
This commit is contained in:
@@ -31,7 +31,7 @@ public interface ChunkListener extends StepListener {
|
||||
void beforeChunk();
|
||||
|
||||
/**
|
||||
* Callback after the chunk is executed, but inside the transaction.
|
||||
* Callback after the chunk is executed, outside the transaction.
|
||||
*/
|
||||
void afterChunk();
|
||||
}
|
||||
|
||||
@@ -23,13 +23,13 @@ import java.lang.annotation.Target;
|
||||
import org.springframework.batch.core.ChunkListener;
|
||||
|
||||
/**
|
||||
* Marks a method to be called after a chunk is executed. <br>
|
||||
* <br>
|
||||
* Marks a method to be called after a chunk is executed.<br>
|
||||
* <br/>
|
||||
* Expected signature: void afterChunk()
|
||||
*
|
||||
* @author Lucas Ward
|
||||
* @since 2.0
|
||||
* @see ChunkListener
|
||||
* @see ChunkListener#afterChunk()
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD})
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.springframework.batch.core.ChunkListener;
|
||||
*
|
||||
* @author Lucas Ward
|
||||
* @since 2.0
|
||||
* @see ChunkListener
|
||||
* @see ChunkListener#beforeChunk()
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD})
|
||||
|
||||
Reference in New Issue
Block a user