com.alipay.remoting.util
Class FutureTaskUtil

java.lang.Object
  extended by com.alipay.remoting.util.FutureTaskUtil

public class FutureTaskUtil
extends Object

Utils for future task


Constructor Summary
FutureTaskUtil()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureTaskUtil

public FutureTaskUtil()
Method Detail

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.