Class

agora.api.exchange.Exchange

Instance

Related Doc: package Exchange

Permalink

class Instance extends Exchange with StrictLogging

A default, ephemeral, non-thread-safe implementation of an exchange

Linear Supertypes
StrictLogging, Exchange, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Instance
  2. StrictLogging
  3. Exchange
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Instance(initialState: ExchangeState, onMatch: OnMatch)(implicit matcher: JobPredicate)

    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(request: CancelJobs): Future[CancelJobsResponse]

    Permalink

    Cancels the submitted jobs, removing them from the exchange

    Cancels the submitted jobs, removing them from the exchange

    request

    the request containing the jobs to cancel

    returns

    a response containing a map between the input job Ids and a flag depicting if they were successfully cancelled

    Definition Classes
    InstanceExchange
  6. final def cancelJobs(job: JobId, theRest: JobId*): Future[CancelJobsResponse]

    Permalink
    Definition Classes
    Exchange
  7. def cancelSubscriptions(request: CancelSubscriptions): Future[CancelSubscriptionsResponse]

    Permalink
    Definition Classes
    InstanceExchange
  8. final def cancelSubscriptions(id: worker.SubscriptionKey, theRest: worker.SubscriptionKey*): Future[CancelSubscriptionsResponse]

    Permalink
    Definition Classes
    Exchange
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def onClientRequest(request: ClientRequest): Future[ClientResponse]

    Permalink
    Definition Classes
    Exchange
  21. def onSubscriptionRequest(req: SubscriptionRequest): Future[SubscriptionResponse]

    Permalink
    Definition Classes
    Exchange
  22. def queueState(request: QueueState): Future[QueueStateResponse]

    Permalink

    Queue the state of the exchange

    Queue the state of the exchange

    returns

    the current queue state

    Definition Classes
    InstanceExchange
  23. def submit(inputJob: SubmitJob): Future[SubmitJobResponse]

    Permalink

    Submit a job to the exchange and trigger a match for work.

    Submit a job to the exchange and trigger a match for work.

    If 'awaitMatch' is specified on the SubmitJob then the response will be a BlockingSubmitJobResponse. Otherwise it will just be sent to the exchange an immediately return a SubmitJobResponse.

    If the submitted job already contains a jobId, then that id will be used and any existing submission with the same Id will be replaced.

    returns

    either BlockingSubmitJobResponse or a SubmitJobResponse

    Definition Classes
    InstanceExchange
  24. def subscribe(inputSubscription: WorkSubscription): Future[WorkSubscriptionAck]

    Permalink

    Creates or updates a WorkSubscription, whose returned WorkSubscriptionAck key can be used to pull work items from the exchange.

    Creates or updates a WorkSubscription, whose returned WorkSubscriptionAck key can be used to pull work items from the exchange.

    If the request specifies a subscription key then any existing subscription with the given id will be updated by having its work details combined w/ the existing subscription

    If no subscription key is supplied, then a new one will be generated and provided on the ack.

    returns

    an ack containing the key needed to request work items

    Definition Classes
    InstanceExchange
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def take(request: RequestWork): Future[RequestWorkAck]

    Permalink

    request

    the number of work items to request

    returns

    an ack which contains the current known total items requested

    Definition Classes
    InstanceExchange
  27. def take(id: worker.SubscriptionKey, itemsRequested: Int): Future[RequestWorkAck]

    Permalink

    convenience method for pulling work items

    convenience method for pulling work items

    Definition Classes
    Exchange
  28. def toString(): String

    Permalink
    Definition Classes
    Instance → AnyRef → Any
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from Exchange

Inherited from AnyRef

Inherited from Any

Ungrouped