|
||||||||||
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 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)
public Object get() throws RemotingException
ResponseFuture
get
in interface ResponseFuture
RemotingException
public Object get(int timeout) throws RemotingException
ResponseFuture
get
in interface ResponseFuture
timeout
- timeout.
RemotingException
public void cancel()
public boolean isDone()
ResponseFuture
isDone
in interface ResponseFuture
public void setCallback(ResponseCallback callback)
ResponseFuture
setCallback
in interface ResponseFuture
public Request getRequest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |