public class WorkerPerTaskTeam extends ThreadGroup implements Team
Constructor and Description |
---|
WorkerPerTaskTeam(String teamName,
TeamIdentifier teamIdentifier)
Initiate
Team with normal priority. |
WorkerPerTaskTeam(String teamName,
TeamIdentifier teamIdentifier,
int threadPriority)
Initiate
Team . |
Modifier and Type | Method and Description |
---|---|
void |
assignJob(Job task,
TeamIdentifier assignerTeam)
|
void |
startWorking()
Indicates for the
Team to start working. |
void |
stopWorking()
Indicates for the
Team to stop working. |
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString, uncaughtException
public WorkerPerTaskTeam(String teamName, TeamIdentifier teamIdentifier, int threadPriority)
Team
.teamName
- Name of this team.threadPriority
- Priority for the worker Thread
instances.teamIdentifier
- TeamIdentifier
of this Team
.public WorkerPerTaskTeam(String teamName, TeamIdentifier teamIdentifier)
Team
with normal priority.teamName
- Name of this team.teamIdentifier
- TeamIdentifier
of this Team
.public void startWorking()
Team
Team
to start working.startWorking
in interface Team
public void assignJob(Job task, TeamIdentifier assignerTeam)
Team
Copyright © 2005–2016. All rights reserved.