File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
libs/micronaut-worker/src/main/java/com/agorapulse/worker/convention Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 21
21
import com .agorapulse .worker .WorkerConfiguration ;
22
22
import com .agorapulse .worker .annotation .Consumes ;
23
23
import com .agorapulse .worker .annotation .FixedRate ;
24
+ import com .agorapulse .worker .annotation .Fork ;
24
25
import com .agorapulse .worker .annotation .Job ;
25
26
import io .micronaut .context .annotation .AliasFor ;
26
27
import jakarta .inject .Named ;
34
35
35
36
@ Documented
36
37
@ Consumes
38
+ @ Fork (JobConfiguration .ConsumerQueueConfiguration .DEFAULT_MAX_MESSAGES )
37
39
@ FixedRate ("20s" )
38
40
@ Retention (RUNTIME )
39
41
@ Target ({ElementType .METHOD , ElementType .ANNOTATION_TYPE })
61
63
/**
62
64
* @return the maximum of messages consumed in a single run, defaults to {@link JobConfiguration.ConsumerQueueConfiguration#DEFAULT_MAX_MESSAGES}
63
65
*/
64
- @ AliasFor (annotation = Consumes .class , member = "value" )
66
+ @ AliasFor (annotation = Fork .class , member = "value" )
67
+ @ AliasFor (annotation = Consumes .class , member = "maxMessages" )
65
68
int maxMessages () default JobConfiguration .ConsumerQueueConfiguration .DEFAULT_MAX_MESSAGES ;
66
69
67
70
/**
You can’t perform that action at this time.
0 commit comments