spring-framework / org.springframework.messaging.simp.config / TaskExecutorRegistration / keepAliveSeconds

keepAliveSeconds

open fun keepAliveSeconds(keepAliveSeconds: Int): TaskExecutorRegistration

Set the time limit for which threads may remain idle before being terminated. If there are more than the core number of threads currently in the pool, after waiting this amount of time without processing a task, excess threads will be terminated. This overrides any value set in the constructor.

By default this is set to 60.