Package net.officefloor.frame.api.team
Interface Team
-
- All Known Subinterfaces:
ThreadLocalAwareTeam
- All Known Implementing Classes:
AbstractExecutorTeamSource.ExecutorTeam,BackPressureTeamSource,LeaderFollowerTeam,OnePersonTeam,StepTeam
public interface TeamTeam of workers to execute the assignedJobinstances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassignJob(Job job)voidstartWorking()Indicates for theTeamto start working.voidstopWorking()Indicates for theTeamto stop working.
-
-
-
Method Detail
-
startWorking
void startWorking()
Indicates for theTeamto start working.
-
assignJob
void assignJob(Job job) throws TeamOverloadException, java.lang.Exception
- Parameters:
job-Job.- Throws:
TeamOverloadException- Indicating theTeamis overloaded and that back pressure should be applied to gracefully handle overload.java.lang.Exception- For otherExceptioninstances to again indicate back pressure.
-
stopWorking
void stopWorking()
-
-