Interface SubmittableWork

  • All Known Subinterfaces:
    Work

    public interface SubmittableWork
    An interface implemented by the Comm Framework to publicly express units of work that can be submitted for processing.

    Author:
    Todd S. Murchison
    • Method Detail

      • getCachingPriority

        net.toddm.cache.CachePriority getCachingPriority()
        Returns the caching CachePriority of this SubmittableWork instance, or null if it had no priority set.
      • setDependentWork

        void setDependentWork​(SubmittableWork dependentWork,
                              DependentWorkListener dependentWorkListener)
        Causes this SubmittableWork to be dependent on the provided Work. When processing this Work the CommManager will ensure that the given Work is processed first. This may include pausing the current Work, starting the dependent Work if it has not yet been started, etc.
        Parameters:
        dependentWork - An instance of SubmittableWork that must finish processing before this instance is processed.
        dependentWorkListener - [OPTIONAL] Can be NULL. If provided, this callback is made with the results of the dependent Work before the current work is processed.