File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
libs/micronaut-worker/src/main/java/com/agorapulse/worker/convention Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 18
18
package com .agorapulse .worker .convention ;
19
19
20
20
import com .agorapulse .worker .JobConfiguration ;
21
+ import com .agorapulse .worker .WorkerConfiguration ;
21
22
import com .agorapulse .worker .annotation .Consumes ;
22
23
import com .agorapulse .worker .annotation .FixedRate ;
24
+ import com .agorapulse .worker .annotation .Job ;
23
25
import io .micronaut .context .annotation .AliasFor ;
26
+ import jakarta .inject .Named ;
24
27
25
28
import java .lang .annotation .Documented ;
26
29
import java .lang .annotation .ElementType ;
61
64
@ AliasFor (annotation = Consumes .class , member = "value" )
62
65
int maxMessages () default JobConfiguration .ConsumerQueueConfiguration .DEFAULT_MAX_MESSAGES ;
63
66
67
+ /**
68
+ * @return The name of a {@link Named} bean that is a
69
+ * {@link java.util.concurrent.ScheduledExecutorService} to use to schedule the task
70
+ */
71
+ @ AliasFor (annotation = Job .class , member = "scheduler" )
72
+ String scheduler () default WorkerConfiguration .DEFAULT_SCHEDULER ;
73
+
64
74
}
You can’t perform that action at this time.
0 commit comments