Class AbstractExecutorTeamSource.ExecutorTeam
java.lang.Object
net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource.ExecutorTeam
- All Implemented Interfaces:
Team
- Enclosing class:
- AbstractExecutorTeamSource
Team based on the ExecutorService.-
Constructor Summary
ConstructorsConstructorDescriptionExecutorTeam(String teamName, AbstractExecutorTeamSource.ExecutorServiceFactory factory, int maxShutdownWaitTimeInSeconds) Initiate. -
Method Summary
-
Constructor Details
-
ExecutorTeam
public ExecutorTeam(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.
-
-
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
-