File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
server-common/src/main/java/io/a2a/server/util/async Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1212import jakarta .annotation .PreDestroy ;
1313import jakarta .enterprise .context .ApplicationScoped ;
1414import jakarta .enterprise .inject .Produces ;
15+ import jakarta .inject .Inject ;
16+
1517import org .eclipse .microprofile .config .inject .ConfigProperty ;
1618import org .slf4j .Logger ;
1719import org .slf4j .LoggerFactory ;
@@ -21,14 +23,17 @@ public class AsyncExecutorProducer {
2123
2224 private static final Logger LOGGER = LoggerFactory .getLogger (AsyncExecutorProducer .class );
2325
26+ @ Inject // Needed to work in standard Jakarta runtimes (Quarkus skips this)
2427 @ ConfigProperty (name = "a2a.executor.core-pool-size" , defaultValue = "5" )
2528 int corePoolSize ;
2629
30+ @ Inject // Needed to work in standard Jakarta runtimes (Quarkus skips this)
2731 @ ConfigProperty (name = "a2a.executor.max-pool-size" , defaultValue = "50" )
2832 int maxPoolSize ;
2933
34+ @ Inject // Needed to work in standard Jakarta runtimes (Quarkus skips this)
3035 @ ConfigProperty (name = "a2a.executor.keep-alive-seconds" , defaultValue = "60" )
31- long keepAliveSeconds ;
36+ int keepAliveSeconds ;
3237
3338 private ExecutorService executor ;
3439
You can’t perform that action at this time.
0 commit comments