public class TimeLimitedCodeBlock
Taken from http://stackoverflow.com/questions/5715235/java-set-timeout-on-a-certain-block-of-code
Type Params | Return Type | Name and description |
---|---|---|
|
public java.lang.Object |
call() |
|
public static void |
runWithTimeout(java.lang.Runnable runnable, long timeout, java.util.concurrent.TimeUnit timeUnit) |
<T> |
public static T |
runWithTimeout(java.util.concurrent.Callable<T> callable, long timeout, java.util.concurrent.TimeUnit timeUnit) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |