Class WorkItemImpl

  • All Implemented Interfaces:
    WorkItem, Runnable

    public class WorkItemImpl
    extends Object
    implements WorkItem, Runnable
    A WorkItem implementation. This class will wrap a Work object and when executed delegate to the Work object. This is in order to be able to update the status of the work item and invoke the listener when the work has finished execution. Note: For now this class does not support the Comparable interface, which is needed to be Collection-friendly.
    Author:
    Torkel Dominique
    See Also:
    WorkItem
    • Constructor Detail

    • Method Detail

      • compareTo

        public int compareTo​(Object o)
      • run

        public void run()
        Runs the work represented by this work item and invoke the listener if available.
        Specified by:
        run in interface Runnable