Add Ordered interface to all event listeneres

changes requested by cppwfs

Fix Constructors duplication

Add @author

Some cleanup on chunk listener

Updated chunk listener to send message before and after chunk.
Fixed Links for JavaDocs to prevent failure on javadoc build.
Updated tests to support new chunk messages.
This commit is contained in:
Ali Shahbour
2017-03-06 17:06:51 +02:00
committed by Glenn Renfro
parent fc708ac775
commit 450de51d0c
13 changed files with 382 additions and 22 deletions

View File

@@ -189,7 +189,7 @@ spring.cloud.task.batch.events.enabled=false
```
To disable a specific batch event use the following configuration:
`spring.cloud.task.events.<batch event listener>.enabled=false`:
`spring.cloud.task.batch.events.<batch event listener>.enabled=false`:
```
spring.cloud.task.batch.events.job-execution.enabled=false
@@ -200,3 +200,16 @@ spring.cloud.task.batch.events.item-process.enabled=false
spring.cloud.task.batch.events.item-write.enabled=false
spring.cloud.task.batch.events.skip.enabled=false
```
=== Emit Order for Batch Events
By default batch events have `Ordered.LOWEST_PRECEDENCE` , to change this value ( for example to 5 ) use the following configuration:
```
spring.cloud.task.batch.events.job-execution-order=5
spring.cloud.task.batch.events.step-execution-order=5
spring.cloud.task.batch.events.chunk-order=5
spring.cloud.task.batch.events.item-read-order=5
spring.cloud.task.batch.events.item-process-order=5
spring.cloud.task.batch.events.item-write-order=5
spring.cloud.task.batch.events.skip-order=5
```