com.alipay.remoting.util
Class FutureTaskUtil
java.lang.Object
com.alipay.remoting.util.FutureTaskUtil
public class FutureTaskUtil
- extends Object
Utils for future task
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureTaskUtil
public FutureTaskUtil()
getFutureTaskResult
public 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.
- Type Parameters:
T - - Parameters:
task -
- Returns:
launderThrowable
public static void launderThrowable(Throwable t)
- launder the throwable
- Parameters:
t -
Copyright © 2018. All rights reserved.