Class LeaderFollowerTeam
java.lang.Object
net.officefloor.frame.impl.spi.team.LeaderFollowerTeam
- All Implemented Interfaces:
Team
- Author:
- Daniel Sagenschneider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.officefloor.frame.impl.spi.team.LeaderFollowerTeam.TeamMember[]LeaderFollowerTeam.TeamMemberinstances. -
Constructor Summary
ConstructorsConstructorDescriptionLeaderFollowerTeam(int teamMemberCount, ThreadFactory threadFactory, long waitTime) Initiate with the name of team. -
Method Summary
-
Field Details
-
teamMembers
protected final net.officefloor.frame.impl.spi.team.LeaderFollowerTeam.TeamMember[] teamMembersLeaderFollowerTeam.TeamMemberinstances.
-
-
Constructor Details
-
LeaderFollowerTeam
Initiate with the name of team.- Parameters:
teamMemberCount- Number ofLeaderFollowerTeam.TeamMemberinstances within thisLeaderFollowerTeam.threadFactory-ThreadFactory.waitTime- Time to wait in milliseconds for aJob.
-
-
Method Details
-
startWorking
public void startWorking()Description copied from interface:TeamIndicates for theTeamto start working.- Specified by:
startWorkingin interfaceTeam
-
assignJob
Description copied from interface:Team -
stopWorking
public void stopWorking()Description copied from interface:TeamIndicates for the
Teamto stop working.This method should block and only return control when the
Teamhas stopped working and is no longer assignedJobinstances to complete.- Specified by:
stopWorkingin interfaceTeam
-