Class

jabroni.rest.worker

WorkerRoutes

Related Doc: package worker

Permalink

case class WorkerRoutes(exchange: Exchange = Exchange(), defaultSubscription: WorkSubscription = WorkSubscription(), defaultInitialRequest: Int = 1)(implicit mat: Materializer) extends MultipartHandlerSupport with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, MultipartHandlerSupport, FailFastCirceSupport, FailFastUnmarshaller, NoSpacesPrinter, BaseCirceSupport, MultipartDirectives, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WorkerRoutes
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MultipartHandlerSupport
  7. FailFastCirceSupport
  8. FailFastUnmarshaller
  9. NoSpacesPrinter
  10. BaseCirceSupport
  11. MultipartDirectives
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WorkerRoutes(exchange: Exchange = Exchange(), defaultSubscription: WorkSubscription = WorkSubscription(), defaultInitialRequest: Int = 1)(implicit mat: Materializer)

    Permalink

Type Members

  1. class OnMultipartWork extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    MultipartHandlerSupport

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addHandler[T](onReq: (WorkContext[T]) ⇒ Unit)(implicit subscription: WorkSubscription = defaultSubscription, initialRequest: Int = defaultInitialRequest, fromRequest: Unmarshaller[HttpRequest, T]): Future[RequestWorkAck]

    Permalink

    The main body for a handler ...

    The main body for a handler ... registers a function ('onReq') which does some work.

    Instead of a thinking of a generic computation as a function from A => B, This exposes the function as WorkContext[A] => ResponseEntity

    The WorkContext exposes a handle onto the exchange (so the computation can request more work) and access details about the work sent to it

    T

    the request input type

    onReq

    the compute functions

    subscription

    the subscription to use when asking for work for this computation

    initialRequest

    how many work items to initially ask for

    returns

    a future of the 'request work' ack

  5. def addMultipartHandler(onReq: (WorkContext[MultipartPieces]) ⇒ Unit)(implicit subscription: WorkSubscription = defaultSubscription, initialRequest: Int = defaultInitialRequest): Future[RequestWorkAck]

    Permalink
    Definition Classes
    MultipartHandlerSupport
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val defaultInitialRequest: Int

    Permalink
  9. val defaultSubscription: WorkSubscription

    Permalink
  10. implicit val ec: ExecutionContextExecutor

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. val exchange: Exchange

    Permalink
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def handleWorkRoute: Route

    Permalink
  16. def health: Route

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. implicit final val jsonMarshaller: ToEntityMarshaller[Json]

    Permalink
    Definition Classes
    BaseCirceSupport
  19. implicit final val jsonUnmarshaller: FromEntityUnmarshaller[Json]

    Permalink
    Definition Classes
    BaseCirceSupport
  20. def listSubscriptions: Route

    Permalink
  21. implicit final def marshaller[A](implicit arg0: Encoder[A]): ToEntityMarshaller[A]

    Permalink
    Definition Classes
    BaseCirceSupport
  22. var multipartByPath: Map[String, OnMultipartWork]

    Permalink
    Attributes
    protected
    Definition Classes
    MultipartHandlerSupport
  23. def multipartData: Directive1[MultipartPieces]

    Permalink
    Definition Classes
    MultipartDirectives
  24. def multipartRoutes: Route

    Permalink
    Definition Classes
    MultipartHandlerSupport
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def parseFormData(formData: FormData)(implicit mat: Materializer): Future[MultipartPieces]

    Permalink
    Definition Classes
    MultipartDirectives
  29. final def printer: Printer

    Permalink
    Definition Classes
    NoSpacesPrinter
  30. def routes: Route

    Permalink
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. implicit final def unmarshaller[A](implicit arg0: Decoder[A]): FromEntityUnmarshaller[A]

    Permalink
    Definition Classes
    FailFastUnmarshaller
  33. def usingSubscription(f: (WorkSubscription) ⇒ WorkSubscription): WithSubscriptionWord

    Permalink
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def workerRoutes: Route

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MultipartHandlerSupport

Inherited from FailFastCirceSupport

Inherited from FailFastUnmarshaller

Inherited from NoSpacesPrinter

Inherited from BaseCirceSupport

Inherited from MultipartDirectives

Inherited from AnyRef

Inherited from Any

Ungrouped