|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alibaba.dubbo.remoting.exchange.support.DefaultFuture
public class DefaultFuture
DefaultFuture.
| Constructor Summary | |
|---|---|
DefaultFuture(Channel channel,
Request request,
int timeout)
|
|
| Method Summary | |
|---|---|
void |
cancel()
|
Object |
get()
get result. |
Object |
get(int timeout)
get result with the specified timeout. |
static DefaultFuture |
getFuture(long id)
|
Request |
getRequest()
|
static boolean |
hasFuture(Channel channel)
|
boolean |
isDone()
check is done. |
static void |
received(Channel channel,
Response response)
|
static void |
sent(Channel channel,
Request request)
|
void |
setCallback(ResponseCallback callback)
set callback. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFuture(Channel channel,
Request request,
int timeout)
| Method Detail |
|---|
public Object get()
throws RemotingException
ResponseFuture
get in interface ResponseFutureRemotingException
public Object get(int timeout)
throws RemotingException
ResponseFuture
get in interface ResponseFuturetimeout - timeout.
RemotingExceptionpublic void cancel()
public boolean isDone()
ResponseFuture
isDone in interface ResponseFuturepublic void setCallback(ResponseCallback callback)
ResponseFuture
setCallback in interface ResponseFuturepublic Request getRequest()
public static DefaultFuture getFuture(long id)
public static boolean hasFuture(Channel channel)
public static void sent(Channel channel,
Request request)
public static void received(Channel channel,
Response response)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||