public class SofaResponseFuture extends Object
| 构造器和说明 |
|---|
SofaResponseFuture() |
public static boolean isDone()
throws SofaRpcException
SofaRpcExceptionpublic static Object getResponse(long timeout, boolean clear) throws SofaRpcException, InterruptedException
If remoting get exception, framework will wrapped it to SofaRpcException
timeout - get timeoutclear - true: framework will clear the ThreadLocal when returnSofaRpcException - When throw SofaRpcExceptionInterruptedException - if any thread has interrupted the current thread. The
interrupted status of the current thread is
cleared when this exception is thrown.public static Future getFuture() throws SofaRpcException
SofaRpcException - 当前线程上下文没有值的时候public static Future getFuture(boolean clear) throws SofaRpcException
clear - 是否清除线程上下文SofaRpcException - 当前线程上下文没有值的时候Copyright © 2008–2018 The Ant Financial. All rights reserved.