Class LeaderFollowerTeam
- java.lang.Object
-
- net.officefloor.frame.impl.spi.team.LeaderFollowerTeam
-
-
Field Summary
Fields Modifier and Type Field Description protected net.officefloor.frame.impl.spi.team.LeaderFollowerTeam.TeamMember[]
teamMembers
LeaderFollowerTeam.TeamMember
instances.
-
Constructor Summary
Constructors Constructor Description LeaderFollowerTeam(int teamMemberCount, java.util.concurrent.ThreadFactory threadFactory, long waitTime)
Initiate with the name of team.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
LeaderFollowerTeam
public LeaderFollowerTeam(int teamMemberCount, java.util.concurrent.ThreadFactory threadFactory, long waitTime)
Initiate with the name of team.- Parameters:
teamMemberCount
- Number ofLeaderFollowerTeam.TeamMember
instances within thisLeaderFollowerTeam
.threadFactory
-ThreadFactory
.waitTime
- Time to wait in milliseconds for aJob
.
-
-