Interface ExecutiveContext
-
- All Superinterfaces:
SourceContext,SourceProperties,TeamSourceContext
- All Known Implementing Classes:
ExecutiveContextImpl
public interface ExecutiveContext extends TeamSourceContext
Context for theExecutive.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.ThreadFactorycreateThreadFactory(java.lang.String teamName)Creates aThreadFactoryfor theTeamname.TeamSourcegetTeamSource()Obtains theTeamSourceto create theTeam.booleanisRequestNoTeamOversight()Indicates if requesting noTeamOversight.-
Methods inherited from interface net.officefloor.frame.api.source.SourceContext
getClassLoader, getClock, getLogger, getName, getOptionalResource, getProfiles, getResource, isLoadingType, loadClass, loadOptionalClass, loadOptionalService, loadOptionalServices, loadService, loadService, loadServices
-
Methods inherited from interface net.officefloor.frame.api.source.SourceProperties
getProperties, getProperty, getProperty, getPropertyNames
-
Methods inherited from interface net.officefloor.frame.api.team.source.TeamSourceContext
getTeamName, getTeamSize, getTeamSize, getThreadFactory
-
-
-
-
Method Detail
-
isRequestNoTeamOversight
boolean isRequestNoTeamOversight()
Indicates if requesting no
TeamOversight.The
Executivemay ignore this request.- Returns:
trueto request noTeamOversight.
-
getTeamSource
TeamSource getTeamSource()
Obtains theTeamSourceto create theTeam.- Returns:
TeamSourceto create theTeam.
-
createThreadFactory
java.util.concurrent.ThreadFactory createThreadFactory(java.lang.String teamName)
Creates a
ThreadFactoryfor theTeamname.The
Executivemay decide to create multipleTeaminstances for the actualTeam. This allows identifying whichThreadwill belong to eachTeam.- Parameters:
teamName- Name of theTeam.- Returns:
ThreadFactory.
-
-