Class AbstractExecutorTeamSource.ExecutorTeam
- java.lang.Object
-
- net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource.ExecutorTeam
-
- All Implemented Interfaces:
Team
- Enclosing class:
- AbstractExecutorTeamSource
public static class AbstractExecutorTeamSource.ExecutorTeam extends java.lang.Object implements Team
Team
based on theExecutorService
.
-
-
Constructor Summary
Constructors Constructor Description ExecutorTeam(java.lang.String teamName, AbstractExecutorTeamSource.ExecutorServiceFactory factory, int maxShutdownWaitTimeInSeconds)
Initiate.
-
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
-
ExecutorTeam
public ExecutorTeam(java.lang.String teamName, AbstractExecutorTeamSource.ExecutorServiceFactory factory, int maxShutdownWaitTimeInSeconds)
Initiate.- Parameters:
teamName
- Name of theTeam
.factory
-AbstractExecutorTeamSource.ExecutorServiceFactory
.maxShutdownWaitTimeInSeconds
- Maximum time in seconds to wait for shutdown.
-
-