Interface IComputation<T>
- Type Parameters:
T
- The type of the keys used to identify the computations.
- All Superinterfaces:
Runnable
Encapsulates the logic of a computation that can be identified by a key.
-
Method Details
-
getKey
T getKey()The computation identifier.- Returns:
- The computation identifier.
-
getPostTreatment
com.google.common.util.concurrent.FutureCallback<Object> getPostTreatment()Post-treatment.- Returns:
- The post-tretament to run when this computation is over, whatever its outcome. This should be
called by the "framework" in a finally clause to guarantee it is always executed. It is allowed
for implementors to return
null
.
-