No, there is no mechanism that completes your thread. If the thread runs too long, this is your problem :-).
Note. You can use annotation @Scheduled(fixedDelay=xxx)only to start a new thread when the old thread ends. This avoids the parallel flow problem of multiple threads. However, a thread running too long or even freezing) may, of course, still cause other problems.
, , . - / , " ", , , . , , (. Thread.stop()).