com.alibaba.dubbo.remoting.exchange
Interface ResponseFuture

All Known Implementing Classes:
DefaultFuture, SimpleFuture

public interface ResponseFuture

Future. (API/SPI, Prototype, ThreadSafe)

Author:
qian.lei, william.liangf
See Also:
ExchangeChannel.request(Object), ExchangeChannel.request(Object, int)

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.
 

Method Detail

get

Object get()
           throws RemotingException
get result.

Returns:
result.
Throws:
RemotingException

get

Object get(int timeoutInMillis)
           throws RemotingException
get result with the specified timeout.

Parameters:
timeoutInMillis - timeout.
Returns:
result.
Throws:
RemotingException

setCallback

void setCallback(ResponseCallback callback)
set callback.

Parameters:
callback -

isDone

boolean isDone()
check is done.

Returns:
done or not.


Copyright © 2012–2017 Alibaba. All rights reserved.