Interface Team

All Known Subinterfaces:
ThreadLocalAwareTeam
All Known Implementing Classes:
AbstractExecutorTeamSource.ExecutorTeam, BackPressureTeamSource, LeaderFollowerTeam, OnePersonTeam, StepTeam

public interface Team
Team of workers to execute the assigned Job instances.
Author:
Daniel Sagenschneider
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Assigns a Job to be executed by this Team.
    void
    Indicates for the Team to start working.
    void
    Indicates for the Team to stop working.
  • Method Details

    • startWorking

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

      void assignJob(Job job) throws TeamOverloadException, Exception
      Assigns a Job to be executed by this Team.
      Parameters:
      job - Job.
      Throws:
      TeamOverloadException - Indicating the Team is overloaded and that back pressure should be applied to gracefully handle overload.
      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.