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.ThreadFactory
createThreadFactory(java.lang.String teamName)
Creates aThreadFactory
for theTeam
name.TeamSource
getTeamSource()
Obtains theTeamSource
to create theTeam
.boolean
isRequestNoTeamOversight()
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
Executive
may ignore this request.- Returns:
true
to request noTeamOversight
.
-
getTeamSource
TeamSource getTeamSource()
Obtains theTeamSource
to create theTeam
.- Returns:
TeamSource
to create theTeam
.
-
createThreadFactory
java.util.concurrent.ThreadFactory createThreadFactory(java.lang.String teamName)
Creates a
ThreadFactory
for theTeam
name.The
Executive
may decide to create multipleTeam
instances for the actualTeam
. This allows identifying whichThread
will belong to eachTeam
.- Parameters:
teamName
- Name of theTeam
.- Returns:
ThreadFactory
.
-
-