public interface ResponseFuture
ExchangeChannel.request(Object),
ExchangeChannel.request(Object, int)| 限定符和类型 | 方法和说明 |
|---|---|
Object |
get()
get result.
|
Object |
get(int timeoutInMillis)
get result with the specified timeout.
|
boolean |
isDone()
check is done.
|
void |
setCallback(ResponseCallback callback)
set callback.
|
Object get() throws RemotingException
RemotingExceptionObject get(int timeoutInMillis) throws RemotingException
timeoutInMillis - timeout.RemotingExceptionvoid setCallback(ResponseCallback callback)
callback - boolean isDone()
Copyright © 2012–2017 Alibaba. All rights reserved.