Interface Team

    • Method Detail

      • startWorking

        void startWorking()
        Indicates for the Team to start working.
      • assignJob

        void assignJob​(Job job)
                throws TeamOverloadException,
        Assigns a Job to be executed by this Team.
        job - Job.
        TeamOverloadException - Indicating the Team is overloaded and that back pressure should be applied to gracefully handle overload.
        java.lang.Exception - For other Exception instances to again indicate back pressure.
      • stopWorking

        void stopWorking()

        Indicates for the Team to stop working.

        This method should block and only return control when the Team has stopped working and is no longer assigned Job instances to complete.