- Type Parameters:
V
- Type of callable
- All Implemented Interfaces:
- Callable<V>
public class CallableResult<V>
extends Object
implements Callable<V>
Utility Callable class where the result can be set before the call method is called.
Meant for use with FutureTask where the result can be set before calling the run method.
This way a Future can be returned where the result can be set just before notifying the
caller waiting on the Future.
- Author:
- Suresh