Class OnePersonTeam
- java.lang.Object
-
- net.officefloor.frame.impl.spi.team.OnePersonTeam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
OnePersonTeam.OnePerson
The 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 void
assignJob(Job job)
java.lang.String
getThreadName()
Obtains the name of the singleThread
.void
startWorking()
Indicates for theTeam
to start working.void
stopWorking()
Indicates for theTeam
to 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 benull
ifTeam
not started.
-
startWorking
public void startWorking()
Description copied from interface:Team
Indicates for theTeam
to start working.- Specified by:
startWorking
in interfaceTeam
-
-