RemoteMethod.FuturePreparator¶
-
public static abstract class
FuturePreparator<FutureDataType>¶ Instances of this class are used to prepare a
Futureinstance containing the desired result of the client from the replyEventinstance.- Author
jwienke
- Parameters
<FutureDataType> – the data type of the contents inside the result future
Constructors¶
FuturePreparator¶
-
public
FuturePreparator(Future<FutureDataType> future)¶ Creates a new instance with a
Futureinstance that is eventually passed to the client. Internally aWeakReferencewill be used to track this future. This allows the client to ignore the result future in a way that we sometimes can notice this and avoid additional work.- Parameters
future – the future to contain the final result.