Package net.officefloor.frame.api.team
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 assignedJob
instances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assignJob(Job job)
void
startWorking()
Indicates for theTeam
to start working.void
stopWorking()
Indicates for theTeam
to stop working.
-
-
-
Method Detail
-
startWorking
void startWorking()
Indicates for theTeam
to start working.
-
assignJob
void assignJob(Job job) throws TeamOverloadException, java.lang.Exception
- Parameters:
job
-Job
.- Throws:
TeamOverloadException
- Indicating theTeam
is overloaded and that back pressure should be applied to gracefully handle overload.java.lang.Exception
- For otherException
instances to again indicate back pressure.
-
stopWorking
void stopWorking()
-
-