@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
@Inherited
public @interface ThreadLeakLingering
Modifier and Type | Optional Element and Description |
---|---|
int |
linger
Time in millis to "linger" for any left-behind threads.
|
public abstract int linger
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 with
Timer
or Executors
for example.
Copyright © 2011–2017 Carrot Search s.c.. All rights reserved.