Package com.adobe.acs.commons.fam
Class CancelHandler
java.lang.Object
com.adobe.acs.commons.fam.CancelHandler
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CancelHandler
public CancelHandler()
-
-
Method Details
-
cancel
public void cancel(boolean useForce) -
isCancelled
public boolean isCancelled() -
isForcefullyCancelled
public boolean isForcefullyCancelled() -
trackActiveWork
-
untrackActiveWork
-