public class Future<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Future.FutureBuild<T> |
static class |
Future.FutureWith<T> |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
target |
private java.lang.Class<?>[] |
types |
| Modifier | Constructor and Description |
|---|---|
private |
Future(java.lang.Class<?>[] types) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Future.FutureWith<T> |
proxy(java.lang.Class<T> primaryType)
Creates a proxy instance for asynchronous calls on a type.
|
static <T> Future.FutureWith<T> |
proxy(java.lang.Class<T> primaryType,
java.lang.Class<?>... types)
Creates a proxy instance for asynchronous calls on a type.
|
static <T> Future.FutureBuild<T> |
proxy(T target)
Creates a proxy instance for asynchronous calls on an object.
|
public static <T> Future.FutureWith<T> proxy(java.lang.Class<T> primaryType)
primaryType - the type of the created proxy.public static <T> Future.FutureWith<T> proxy(java.lang.Class<T> primaryType, java.lang.Class<?>... types)
primaryType - the main type of the created proxy.types - the other types of the created proxy.public static <T> Future.FutureBuild<T> proxy(T target)
target - the proxied object.