org.jboss.errai.bus.server.api
Class CallableFutureFactory
java.lang.Object
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 |
|
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 |
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
.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.