public class FutureTaskUtil extends Object
| 构造器和说明 |
|---|
FutureTaskUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
getFutureTaskResult(RunStateRecordedFutureTask<T> task,
org.slf4j.Logger logger)
get the result of a future task
Notice: the run method of this task should have been called at first.
|
static void |
launderThrowable(Throwable t)
launder the throwable
|
public static <T> T getFutureTaskResult(RunStateRecordedFutureTask<T> task, org.slf4j.Logger logger)
T - task - public static void launderThrowable(Throwable t)
t - Copyright © 2020. All rights reserved.