Annotation Type ThreadLeakLingering
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) @Inherited public @interface ThreadLeakLingering
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
linger
Time in millis to "linger" for any left-behind threads.
-
-
-
Element Detail
-
linger
int linger
Time 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 withTimer
orExecutors
for example.- Default:
- 0
-
-