SIGN IN SIGN UP

perf: Schedule session end on shared executor (JAVA-653) (#5819)

* perf: Schedule session end on shared executor (JAVA-653)

LifecycleWatcher created a java.util.Timer whose thread was spawned on
the first background transition and lived for the rest of the process.
Schedule the session-end task on the shared timer executor instead,
whose single worker thread is reused and self-terminates when idle. If
scheduling fails (executor already shut down), the session is ended
right away instead of leaking.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* changelog

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
N
Nelson Osacky committed
023ef00380c20af75e4205b5ed82b37a04f22950
Parent: f210d11
Committed by GitHub <noreply@github.com> on 7/22/2026, 4:00:41 PM