DependentJob class abstract
A type of job that can depend on other jobs.
This is the base type of WorkerJob and WorkerJobGroup, which can all depend on each other.
Jobs are not allowed to have a dependency cycle, meaning that they can't depend on themselves, directly or indirectly. Will throw a ProcessRunnerException if a cycle is detected.
- Implementers
Constructors
-
DependentJob({Iterable<
DependentJob> dependsOn = const <DependentJob>{}})
Properties
-
dependsOn
→ Set<
DependentJob> -
Other jobs that this job depends on.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the job.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addDependencies(
Iterable< DependentJob> jobs) → void -
Adds all of the
jobs
as dependencies of this job. -
addDependency(
DependentJob job) → void - Add a dependency to this job.
-
addToQueue(
List< DependentJob> jobQueue) → void -
Adds this job, and any jobs it manages to the given
jobQueue
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeDependencies(
Iterable< DependentJob> jobs) → void -
Removes all of the given
jobs
as dependencies of this job. -
removeDependency(
DependentJob job) → void - Remove a dependency to this job that was added with addDependency.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited