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.
threadFactory_
Constructor and Description |
---|
TimedCallable(Callable function,
long millis) |
Modifier and Type | Method and Description |
---|---|
Object |
call() |
getThreadFactory, setThreadFactory
Copyright © 2012-2013 Adele Team | LIG. All Rights Reserved.