public class CallableFutureFactory extends Object
CallableFuture
for use in asynchronous RPC methods.Modifier and Type | Method and Description |
---|---|
<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() |
public static CallableFutureFactory get()
public <T> CallableFuture<T> createFuture()
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.T
- The type of value to be returned.CallableFuture
.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.