public class AsynchronousControlGroup extends RealtimeThreadGroup
RealtimeThreadGroup
in which asynchronous task
termination can be performed. It defines a set of tasks, both instances
of Schedulable
and java.lang.Thread
,
that can be terminated together. By combining this with a class loader,
one can build a virtual process within a Java runtime environment.Constructor and Description |
---|
AsynchronousControlGroup(RealtimeThreadGroup parent,
java.lang.String name)
Creates a new asynchronous control group with its scheduler type
inherited from
parent . |
AsynchronousControlGroup(java.lang.String name)
Creates a new group with the current
ThreadGroup instance
as its parent and that parent's scheduler type for its scheduler type. |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Terminate all tasks running in this thread group.
|
getMaxEligibility, getScheduler, setMaxEligibility, visitThreadGroups, visitThreadGroups, visitThreads, visitThreads
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 AsynchronousControlGroup(RealtimeThreadGroup parent, java.lang.String name)
parent
.parent
- The parent group of the new groupname
- The name of the new groupStaticIllegalStateException
- when the parent ThreadGroup
instance is not an instance of RealtimeThreadGroup
.IllegalAssignmentError
- when the parent
ThreadGroup
instance is not assignable to this.public AsynchronousControlGroup(java.lang.String name) throws StaticIllegalStateException, IllegalAssignmentError
ThreadGroup
instance
as its parent and that parent's scheduler type for its scheduler type.
That parent must be an instance of RealtimeThreadGroup
.
The primordial realtime thread group has Scheduler.class
as its
scheduler type.name
- The name of the new groupStaticIllegalStateException
- when the parent ThreadGroup
instance is not an instance of RealtimeThreadGroup
.IllegalAssignmentError
- when the parent
ThreadGroup
instance is not assignable to this.