Class

agora.rest.exchange

ExchangeRoutes

Related Doc: package exchange

Permalink

case class ExchangeRoutes(exchange: ServerSideExchange) extends ExchangeSubmissionRoutes with ExchangeWorkerRoutes with ExchangeQueryRoutes with RouteLoggingSupport with Product with Serializable

Handles:

PUT rest/exchange/submit PUT rest/exchange/subscribe POST rest/exchange/take

POST rest/exchange/subscriptions POST rest/exchange/jobs

see ExchangeHttp for the client-side of this

Annotations
@Api() @Path()
See also

http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0/scala/http/routing-dsl/index.html

Linear Supertypes
Serializable, Serializable, Product, Equals, RouteLoggingSupport, ExchangeQueryRoutes, ExchangeWorkerRoutes, ExchangeSubmissionRoutes, FailFastCirceSupport, FailFastUnmarshaller, BaseCirceSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExchangeRoutes
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. RouteLoggingSupport
  7. ExchangeQueryRoutes
  8. ExchangeWorkerRoutes
  9. ExchangeSubmissionRoutes
  10. FailFastCirceSupport
  11. FailFastUnmarshaller
  12. BaseCirceSupport
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExchangeRoutes(exchange: ServerSideExchange)

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def cancelJobs: Route

    Permalink
    Definition Classes
    ExchangeSubmissionRoutes
    Annotations
    @Path() @ApiOperation() @ApiImplicitParams() @ApiResponses()
  6. def cancelSubscriptions: Route

    Permalink
    Definition Classes
    ExchangeWorkerRoutes
    Annotations
    @Path() @ApiOperation() @ApiImplicitParams() @ApiResponses()
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def entityAsString(entity: HttpEntity)(implicit m: Materializer): Future[String]

    Permalink
    Definition Classes
    RouteLoggingSupport
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. val exchange: ServerSideExchange

    Permalink
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def health: Route

    Permalink

    Support routes to query the state of the exchange (queues)

    Support routes to query the state of the exchange (queues)

    Annotations
    @Path() @ApiOperation() @ApiResponses()
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def jobsGet: Route

    Permalink
    Definition Classes
    ExchangeQueryRoutes
    Annotations
    @Path() @ApiOperation() @ApiResponses()
  16. implicit final def jsonMarshaller(implicit printer: Printer): ToEntityMarshaller[Json]

    Permalink
    Definition Classes
    BaseCirceSupport
  17. def jsonRouteFor[T, B](name: String)(handle: (T) ⇒ Future[_ >: B])(implicit um: FromRequestUnmarshaller[T], dec: Decoder[T], enc: Encoder[B]): Route

    Permalink

    subscription routes called from workers requesting work

    subscription routes called from workers requesting work

    Attributes
    protected
  18. implicit final val jsonUnmarshaller: FromEntityUnmarshaller[Json]

    Permalink
    Definition Classes
    BaseCirceSupport
  19. def logRoute(route: Route, level: LogLevel = Logging.InfoLevel)(implicit m: Materializer): Route

    Permalink
    Definition Classes
    RouteLoggingSupport
  20. implicit final def marshaller[A](implicit arg0: Encoder[A], printer: Printer): ToEntityMarshaller[A]

    Permalink
    Definition Classes
    BaseCirceSupport
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def queryRoutes: Route

    Permalink
    Definition Classes
    ExchangeQueryRoutes
  25. def queueState: Route

    Permalink
    Definition Classes
    ExchangeQueryRoutes
    Annotations
    @Path() @ApiOperation() @ApiImplicitParams() @ApiResponses()
  26. def queueStateGet: Route

    Permalink
    Definition Classes
    ExchangeQueryRoutes
    Annotations
    @Path() @ApiOperation() @ApiResponses()
  27. def routes: Route

    Permalink
  28. def submissionRoutes: Route

    Permalink

    returns

    the /rest/exchange/submit routes used for worker subscriptions

    Definition Classes
    ExchangeSubmissionRoutes
  29. def submit: Route

    Permalink
    Definition Classes
    ExchangeSubmissionRoutes
    Annotations
    @Path() @ApiOperation() @ApiImplicitParams() @ApiResponses()
  30. def subscribe: Route

    Permalink
    Definition Classes
    ExchangeWorkerRoutes
    Annotations
    @Path() @ApiOperation() @ApiImplicitParams() @ApiResponses()
  31. def subscriptionsGet: Route

    Permalink
    Definition Classes
    ExchangeQueryRoutes
    Annotations
    @Path() @ApiOperation() @ApiResponses()
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def takeNext: Route

    Permalink
    Definition Classes
    ExchangeWorkerRoutes
    Annotations
    @Path() @ApiOperation() @ApiImplicitParams() @ApiResponses()
  34. implicit final def unmarshaller[A](implicit arg0: Decoder[A]): FromEntityUnmarshaller[A]

    Permalink
    Definition Classes
    FailFastUnmarshaller
  35. def unmarshallerContentTypes: Seq[ContentTypeRange]

    Permalink
    Definition Classes
    BaseCirceSupport
  36. def updateSubscription: Route

    Permalink
    Definition Classes
    ExchangeWorkerRoutes
    Annotations
    @Path() @ApiOperation() @ApiImplicitParams() @ApiResponses()
  37. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    ExchangeWorkerRoutes

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RouteLoggingSupport

Inherited from ExchangeQueryRoutes

Inherited from ExchangeWorkerRoutes

Inherited from ExchangeSubmissionRoutes

Inherited from FailFastCirceSupport

Inherited from FailFastUnmarshaller

Inherited from BaseCirceSupport

Inherited from AnyRef

Inherited from Any

Ungrouped