JobMarketEvent

indigoextras.jobs.JobMarketEvent
See theJobMarketEvent companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

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.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait GlobalEvent
class Object
trait Matchable
class Any
Show all
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.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait GlobalEvent
class Object
trait Matchable
class Any
Show all
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.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait GlobalEvent
class Object
trait Matchable
class Any
Show all
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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait GlobalEvent
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Givens