Class ExecutorCachedTeamSource
java.lang.Object
net.officefloor.frame.api.team.source.impl.AbstractTeamSource
net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource
net.officefloor.frame.impl.spi.team.ExecutorCachedTeamSource
- All Implemented Interfaces:
TeamSource
TeamSource utilising a cached ExecutorService.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource
AbstractExecutorTeamSource.ExecutorServiceFactory, AbstractExecutorTeamSource.ExecutorTeamNested classes/interfaces inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
AbstractTeamSource.SpecificationContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty name for the minimum size.static final StringFields inherited from class net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource
PROPERTY_SHUTDOWN_TIME_IN_SECONDS, PROPERTY_THREAD_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExecutorServiceFactory(TeamSourceContext context, ThreadFactory threadFactory) Obtains the factory to createExecutorService.Methods inherited from class net.officefloor.frame.impl.spi.team.AbstractExecutorTeamSource
createTeam, createTeam, loadSpecificationMethods inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
getSpecification
-
Field Details
-
PROPERTY_MIN_SIZE
Property name for the minimum size.- See Also:
-
PROPERTY_WAIT_TIME
- See Also:
-
-
Constructor Details
-
ExecutorCachedTeamSource
public ExecutorCachedTeamSource()
-
-
Method Details
-
createExecutorServiceFactory
protected AbstractExecutorTeamSource.ExecutorServiceFactory createExecutorServiceFactory(TeamSourceContext context, ThreadFactory threadFactory) throws 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:
Exception- If fails to create theAbstractExecutorTeamSource.ExecutorServiceFactory.
-