EDU.oswego.cs.dl.util.concurrent
public class TimedCallable extends ThreadFactoryUser implements Callable
Note: TimedCallable will always return within the given time limit (modulo timer inaccuracies), but whether or not the worker thread stops in a timely fashion depends on the interrupt handling in the Callable function's implementation.
Version: 1.0
Constructor Summary | |
---|---|
TimedCallable(Callable function, long millis) |
Method Summary | |
---|---|
Object | call() |