Package net.toddm.comm
Interface DependentWorkListener
-
public interface DependentWorkListenerThis interface is implemented by parties that are providing dependent work viaSubmittableWork.setDependentWork(SubmittableWork, DependentWorkListener).- Author:
- Todd S. Murchison
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanonDependentWorkCompleted(Work dependentWork, Work currentWork)This is called when processing for the relevant dependentWorkcompletes.
-
-
-
Method Detail
-
onDependentWorkCompleted
boolean onDependentWorkCompleted(Work dependentWork, Work currentWork)
This is called when processing for the relevant dependentWorkcompletes. The dependent request may have finished successfully, failed, been canceled, etc., but no additional work will be done for it.- Parameters:
dependentWork- The dependentWorkinstances that has finished processing.currentWork- The work that is dependent on dependentWork and that will be processed next if this implementation returns true.- Returns:
- Implementations should, based on the results of the dependent work, return true if the current work should continue or false if the current work should be canceled.
-
-