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 Params
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 Params
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 Params
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 Params
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
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete fields