Package commonj.work

Interface WorkManager


  • public interface WorkManager
    • Method Detail

      • schedule

        WorkItem schedule​(Work work)
                   throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • schedule

        WorkItem schedule​(Work work,
                          WorkListener listener)
                   throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • waitForAll

        boolean waitForAll​(java.util.Collection workItems,
                           long timeout)
                    throws java.lang.InterruptedException,
                           java.lang.IllegalArgumentException
        Throws:
        java.lang.InterruptedException
        java.lang.IllegalArgumentException
      • waitForAny

        java.util.Collection waitForAny​(java.util.Collection workItems,
                                        long timeout)
                                 throws java.lang.InterruptedException,
                                        java.lang.IllegalArgumentException
        Throws:
        java.lang.InterruptedException
        java.lang.IllegalArgumentException