public class WorkerPerTaskTeamSource extends AbstractTeamSource
TeamSource
for the WorkerPerTaskTeam
.AbstractTeamSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_THREAD_PRIORITY
Default
Thread priority. |
static String |
PROPERTY_THREAD_PRIORITY
Property to specify the worker
Thread priority. |
Constructor and Description |
---|
WorkerPerTaskTeamSource() |
Modifier and Type | Method and Description |
---|---|
Team |
createTeam(TeamSourceContext context)
Creates the
Team . |
protected void |
loadSpecification(AbstractTeamSource.SpecificationContext context)
Overridden to load specification.
|
getSpecification
public static final String PROPERTY_THREAD_PRIORITY
Thread
priority.public static final int DEFAULT_THREAD_PRIORITY
Thread
priority.protected void loadSpecification(AbstractTeamSource.SpecificationContext context)
AbstractTeamSource
loadSpecification
in class AbstractTeamSource
context
- AbstractTeamSource.SpecificationContext
.public Team createTeam(TeamSourceContext context) throws Exception
TeamSource
Team
.context
- TeamSourceContext
.Team
.Exception
- If fails to configure the TeamSource
.Copyright © 2005–2016. All rights reserved.