com.alibaba.dubbo.remoting.exchange.support
Class SimpleFuture

java.lang.Object
  extended by com.alibaba.dubbo.remoting.exchange.support.SimpleFuture
All Implemented Interfaces:
ResponseFuture

public class SimpleFuture
extends Object
implements ResponseFuture

SimpleFuture

Author:
william.liangf

Constructor Summary
SimpleFuture(Object value)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFuture

public SimpleFuture(Object value)
Method Detail

get

public Object get()
           throws RemotingException
Description copied from interface: ResponseFuture
get result.

Specified by:
get in interface ResponseFuture
Returns:
result.
Throws:
RemotingException

get

public Object get(int timeoutInMillis)
           throws RemotingException
Description copied from interface: ResponseFuture
get result with the specified timeout.

Specified by:
get in interface ResponseFuture
Parameters:
timeoutInMillis - timeout.
Returns:
result.
Throws:
RemotingException

setCallback

public void setCallback(ResponseCallback callback)
Description copied from interface: ResponseFuture
set callback.

Specified by:
setCallback in interface ResponseFuture

isDone

public boolean isDone()
Description copied from interface: ResponseFuture
check is done.

Specified by:
isDone in interface ResponseFuture
Returns:
done or not.


Copyright © 2012–2017 Alibaba. All rights reserved.