Annotation Type ThreadLeakLingering
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintTime in millis to "linger" for any left-behind threads.
-
Element Details
-
linger
int lingerTime in millis to "linger" for any left-behind threads. If equals 0, there is no waiting.This is particularly useful if there's no way to
Thread.join()and wait for the potential forked threads to terminate. This is the case withTimerorExecutorsfor example.- Default:
0
-