Represents a Worker for a given Actor
- Companion
- object
Value members
Abstract methods
Predicate discriminator used to determine if a worker can carry out a job.
Predicate discriminator used to determine if a worker can carry out a job.
- Value Params
- context
Information about the context the worker is in
- Returns
Job => Boolean
The worker has nothing to do, create jobs from within the given context.
The worker has nothing to do, create jobs from within the given context.
- Value Params
- context
Information about the context the worker is in
- Returns
List[Job]
Test whether an actor thinks a job is complete.
Test whether an actor thinks a job is complete.
- Value Params
- context
Information about the context the worker is in
- Returns
Job => Boolean
When a job is completed, produce an outcome of any new jobs and an updated Actor.
When a job is completed, produce an outcome of any new jobs and an updated Actor.
- Value Params
- context
Information about the context the worker is in
- Returns
Job => Outcome[(List[Job], Actor)]