Class ExecutorFixedTeamSource
- java.lang.Object
-
- net.officefloor.frame.api.team.source.impl.AbstractTeamSource
-
- net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource
-
- net.officefloor.frame.impl.spi.team.ExecutorFixedTeamSource
-
- All Implemented Interfaces:
TeamSource
public class ExecutorFixedTeamSource extends AbstractExecutorTeamSource
TeamSourceutilising a fixedExecutorService.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource
AbstractExecutorTeamSource.ExecutorServiceFactory, AbstractExecutorTeamSource.ExecutorTeam
-
Nested classes/interfaces inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
AbstractTeamSource.SpecificationContext
-
-
Field Summary
-
Fields inherited from class net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource
PROPERTY_SHUTDOWN_TIME_IN_SECONDS, PROPERTY_THREAD_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ExecutorFixedTeamSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractExecutorTeamSource.ExecutorServiceFactorycreateExecutorServiceFactory(TeamSourceContext context, java.util.concurrent.ThreadFactory threadFactory)Obtains the factory to createExecutorService.-
Methods inherited from class net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource
createTeam, createTeam, loadSpecification
-
Methods inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
getSpecification
-
-
-
-
Method Detail
-
createExecutorServiceFactory
protected AbstractExecutorTeamSource.ExecutorServiceFactory createExecutorServiceFactory(TeamSourceContext context, java.util.concurrent.ThreadFactory threadFactory) throws java.lang.Exception
Description copied from class:AbstractExecutorTeamSourceObtains the factory to createExecutorService.- Specified by:
createExecutorServiceFactoryin classAbstractExecutorTeamSource- Parameters:
context-TeamSourceContext.threadFactory-ThreadFactoryto use for the creation of theThreadinstances.- Returns:
AbstractExecutorTeamSource.ExecutorServiceFactory.- Throws:
java.lang.Exception- If fails to create theAbstractExecutorTeamSource.ExecutorServiceFactory.
-
-