Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.client.api
Interface CallableFuture<T>

All Known Implementing Classes:
ServerCallableFuture

public interface CallableFuture<T>

A CallableFuture is something that can be used to reply to an RPC call asynchronously. Particularly for long running processes. RPC methods which return this type will be treated automatically as asynchronous.

The RPC reply only occurs when the setValue(Object) method is invoked.

Author:
Mike Brock

Method Summary
 void setValue(T responseValue)
          The method called to provide the result value into the future.
 

Method Detail

setValue

void setValue(T responseValue)
The method called to provide the result value into the future. Calling this method immediately dispatches a response to the caller, completing the asynchronous call.

Parameters:
responseValue - the response value of the call.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.