java.lang.Object
net.finmath.concurrency.FutureWrapper<V>
- Type Parameters:
V
- The result type returned by this Future's get method.
- All Implemented Interfaces:
Future<V>
Implementation of the Future interface,
without any concurrent execution.
This wrapper comes handy, if we want to represent the result of a direct (blocking) valuation
as a future to replace concurrent valuation.
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionFutureWrapper(V object)
Create a wrapper to an object that looks like a Future on that object. -
Method Summary
-
Constructor Details
-
FutureWrapper
Create a wrapper to an object that looks like a Future on that object.- Parameters:
object
- Object to wrap.
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
get
-
get
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<V>
-
isDone
public boolean isDone()
-