Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server.api
Class CallableFutureFactory

java.lang.Object
  extended by org.jboss.errai.bus.server.api.CallableFutureFactory

public class CallableFutureFactory
extends Object

Used for obtaining instances of CallableFuture for use in asynchronous RPC methods.

Author:
Mike Brock

Method Summary
<T> CallableFuture<T>
createFuture()
          Creates a new CallableFuture that can be returned for an asynchronous RPC method and used for providing a value back to the client when a long-running process is done.
static CallableFutureFactory get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static CallableFutureFactory get()

createFuture

public <T> CallableFuture<T> createFuture()
Creates a new CallableFuture that can be returned for an asynchronous RPC method and used for providing a value back to the client when a long-running process is done.

Type Parameters:
T - The type of value to be returned.
Returns:
and instance of the CallableFuture.

Errai 3.0.1-SNAPSHOT

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