private static final class Task.TaskCallable<V>
extends java.lang.Object
implements java.util.concurrent.Callable<V>
TaskCallable actually implements the Callable contract as defined for
the FutureTask class, and is necessary so as to allow us to intercept
the call() operation to update state on the Task as appropriate.
Invoked by the system when it is time to run the client code. This
implementation is where we modify the state and other properties
and from which we invoke the events.
Specified by:
call in interface java.util.concurrent.Callable<V>
Returns:
The result of the Task call method
Throws:
java.lang.Exception - any exception which occurred