com.alipay.remoting.rpc
Class RpcResponseFuture

java.lang.Object
  extended by com.alipay.remoting.rpc.RpcResponseFuture

public class RpcResponseFuture
extends Object

The future for response.


Constructor Summary
RpcResponseFuture(String addr, InvokeFuture future)
          Constructor
 
Method Summary
 Object get()
           
 Object get(int timeoutMillis)
          get result with timeout specified if request done, resolve normal responseObject if request not done, throws InvokeTimeoutException
 boolean isDone()
          Whether the future is done.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcResponseFuture

public RpcResponseFuture(String addr,
                         InvokeFuture future)
Constructor

Parameters:
addr -
future -
Method Detail

isDone

public boolean isDone()
Whether the future is done.

Returns:

get

public Object get(int timeoutMillis)
           throws InvokeTimeoutException,
                  RemotingException,
                  InterruptedException
get result with timeout specified if request done, resolve normal responseObject if request not done, throws InvokeTimeoutException

Parameters:
timeoutMillis -
Returns:
Throws:
InvokeTimeoutException
RemotingException
InterruptedException

get

public Object get()
           throws RemotingException,
                  InterruptedException
Returns:
Throws:
RemotingException
InterruptedException


Copyright © 2018. All rights reserved.