Interface WorkItem

  • All Known Implementing Classes:
    WorkItemImpl

    public interface WorkItem
    This is a work manager API based on CommonJ.
    Author:
    Torkel Dominique
    See Also:
    WorkItem
    • Method Detail

      • getResult

        Work getResult()
                throws WorkException
        Returns:
        the completed Work or null if the Work is not yet complete
        Throws:
        WorkException - if there is an exception during run then the exception is rethrown here
        See Also:
        WorkItem.getResult()
      • getStatus

        int getStatus()
        Returns:
        one of the events specified on the WorkEvent interface
        See Also:
        WorkItem.getStatus()