public class RpcResponseFuture extends Object
| Constructor and Description |
|---|
RpcResponseFuture(String addr,
InvokeFuture future)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public RpcResponseFuture(String addr, InvokeFuture future)
public boolean isDone()
public Object get(int timeoutMillis) throws InvokeTimeoutException, RemotingException, InterruptedException
public Object get() throws RemotingException, InterruptedException
Copyright © 2024. All rights reserved.