Package com.adobe.acs.commons.fam
Class CancelHandler
- java.lang.Object
-
- com.adobe.acs.commons.fam.CancelHandler
-
- All Implemented Interfaces:
Serializable
public class CancelHandler extends Object implements Serializable
Used to optionally cancel future work. Using Futures would also require keeping track of them somewhere else. This alternative allows a single object which can cancel thousands of tasks that are tied to it.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CancelHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(boolean useForce)booleanisCancelled()booleanisForcefullyCancelled()voidtrackActiveWork(Thread t)voiduntrackActiveWork(Thread t)
-