Class OnePersonTeam
- java.lang.Object
-
- net.officefloor.frame.impl.spi.team.OnePersonTeam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classOnePersonTeam.OnePersonThe individual comprising theTeam.
-
Constructor Summary
Constructors Constructor Description OnePersonTeam(java.util.concurrent.ThreadFactory threadFactory, long waitTime)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignJob(Job job)java.lang.StringgetThreadName()Obtains the name of the singleThread.voidstartWorking()Indicates for theTeamto start working.voidstopWorking()Indicates for theTeamto stop working.
-
-
-
Constructor Detail
-
OnePersonTeam
public OnePersonTeam(java.util.concurrent.ThreadFactory threadFactory, long waitTime)Initiate.- Parameters:
threadFactory-ThreadFactory.waitTime- Time to wait in milliseconds for aJob.
-
-
Method Detail
-
getThreadName
public java.lang.String getThreadName()
Obtains the name of the singleThread.- Returns:
- Name of the single
Thread. Will benullifTeamnot started.
-
startWorking
public void startWorking()
Description copied from interface:TeamIndicates for theTeamto start working.- Specified by:
startWorkingin interfaceTeam
-
-