Class LeaderFollowerTeamSource
- java.lang.Object
-
- net.officefloor.frame.api.team.source.impl.AbstractTeamSource
-
- net.officefloor.frame.impl.spi.team.LeaderFollowerTeamSource
-
- All Implemented Interfaces:
TeamSource
public class LeaderFollowerTeamSource extends AbstractTeamSource
TeamSource
for aLeaderFollowerTeam
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
AbstractTeamSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_THREAD_PRIORITY
DefaultThread
priority.static java.lang.String
PROPERTY_THREAD_PRIORITY
Property to specify the workerThread
priority.
-
Constructor Summary
Constructors Constructor Description LeaderFollowerTeamSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Team
createTeam(TeamSourceContext context)
Creates theTeam
.protected void
loadSpecification(AbstractTeamSource.SpecificationContext context)
Overridden to load specification.-
Methods inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
getSpecification
-
-
-
-
Field Detail
-
PROPERTY_THREAD_PRIORITY
public static final java.lang.String PROPERTY_THREAD_PRIORITY
Property to specify the workerThread
priority.- See Also:
- Constant Field Values
-
DEFAULT_THREAD_PRIORITY
public static final int DEFAULT_THREAD_PRIORITY
DefaultThread
priority.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadSpecification
protected void loadSpecification(AbstractTeamSource.SpecificationContext context)
Description copied from class:AbstractTeamSource
Overridden to load specification.- Specified by:
loadSpecification
in classAbstractTeamSource
- Parameters:
context
-AbstractTeamSource.SpecificationContext
.
-
createTeam
public Team createTeam(TeamSourceContext context) throws java.lang.Exception
Description copied from interface:TeamSource
Creates theTeam
.- Parameters:
context
-TeamSourceContext
.- Returns:
Team
.- Throws:
java.lang.Exception
- If fails to configure theTeamSource
.
-
-