|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Copyright(value="Copyright © 2008, Iparelan Solutions, LLC. All rights reserved.") public interface SuspendableTask
A task that can be paused and restarted.
To be suspendable, implementations must be written so that they either
respond to the Thread interruption scheme or execute some
periodic function that checks whether the task has been disabled. Under no circumstances should deprecated thread suspension schemes be used.
In addition to deprecated suspension features of Java threads, there are
also new facilities in the java.util.concurrent package for
scheduling repeating tasks, but these facilities do not appear to support
suspension.