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.
ThreadFactoryUser.DefaultThreadFactorythreadFactory_| Constructor and Description |
|---|
TimedCallable(Callable function,
long millis) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
call()
Perform some action that returns a result or throws an exception
|
getThreadFactory, setThreadFactorypublic TimedCallable(Callable function, long millis)