public class TimeLimitedCodeBlock extends Object
Constructor and Description |
---|
TimeLimitedCodeBlock() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
runWithTimeout(Callable<T> callable,
long timeout,
TimeUnit timeUnit) |
static void |
runWithTimeout(Runnable runnable,
long timeout,
TimeUnit timeUnit) |
Copyright © 2019. All rights reserved.