JobMarketEvent

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

final case class Allocate(workerId: BindingKey, job: Job) extends JobMarketEvent

An event that represents a job that has been found, for delivery/allocation to the worker.

An event that represents a job that has been found, for delivery/allocation to the worker.

Value parameters:
job

the job to be given to the worker.

workerId

the id of the worker the job is being sent to.

final case class Find(workerId: BindingKey, canTakeJob: Job => Boolean) extends JobMarketEvent

An event emitted by a worker, used to try and find a job to do.

An event emitted by a worker, used to try and find a job to do.

Value parameters:
canTakeJob

A predicate job discriminator supplied by the worker to decide if a job can be done by the requesting worker.

workerId

the workers ID, so that we can report back to the requester.

final case class NothingFound(workerId: BindingKey) extends JobMarketEvent

An event representing that no job could be found for the worker.

An event representing that no job could be found for the worker.

Value parameters:
workerId

the id of the worker who made the request.

final case class Post(job: Job) extends JobMarketEvent

An event to Post a job onto the global market

An event to Post a job onto the global market

Value parameters:
job

the job to put onto the marker

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Givens