Cancels the submitted jobs, removing them from the exchange
Cancels the submitted jobs, removing them from the exchange
the request containing the jobs to cancel
a response containing a map between the input job Ids and a flag depicting if they were successfully cancelled
Enqueues a job w/ the overriding details (instead of the ones from the submitting in scope)
Enqueues a job w/ the overriding details (instead of the ones from the submitting in scope)
the single result
'enqueue' is a convenience method which will then make a request against the matched worker and return that result.
'enqueue' is a convenience method which will then make a request against the matched worker and return that result.
Note: It is assumed that the 'enqueue' is used against a job w/ SubmissionDetails which specify only a single worker is chosen. If a mode is provided which returns multiple workers, then 'enqueueAll' is your darling.
the result type of the AsClient
the result from the single asClient worker
Similar to 'submit', but returns the responses from the worker.
Similar to 'submit', but returns the responses from the worker.
Submit the job, then on the (expected) redirect response, route the work to the given worker using the asClient
the response of the AsClient function used to send work to the worker (which may or may not have been the same request)
both the original work submission response and the response from the worker
eventually we'll get a collection of all the response futures (hence Future[List[Future]])
eventually we'll get a collection of all the response futures (hence Future[List[Future]])
an eventual collection of all the response futures
Syntax for submitting a job which will either return the first completed or
Syntax for submitting a job which will either return the first completed or
A convenience method where client requests can be sent through this single function which delegates to the appropriate method.
A convenience method where client requests can be sent through this single function which delegates to the appropriate method. The 'convenience' in this sense is in terms of pluggability into message handling systems such as actor systems, REST endpoints, etc.
the ClientResponse
A convenience method where subscription requests can be sent through this single function which delegates to the appropriate method.
A convenience method where subscription requests can be sent through this single function which delegates to the appropriate method. The 'convenience' in this sense is in terms of pluggability into message handling systems such as actor systems, REST endpoints, etc.
the SubscriptionResponse
Queue the state of the exchange
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.
the job request
either BlockingSubmitJobResponse or a SubmitJobResponse
Submits the job to the exchange and blocks until there's a match
Submits the job to the exchange and blocks until there's a match
a future BlockSubmitJobResponse
Convenience method to subscribe and immediately request work items
Convenience method to subscribe and immediately request work items
the work subscription
the number of work items to request
the execution context
a tuple of the subscribe ack and request ack
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.
the work subscription
an ack containing the key needed to request work items
convenience method for pulling work items
convenience method for pulling work items
the number of work items to request
an ack which contains the current known total items requested
Updates the json subscription details referred to by the subscription key.
Updates the json subscription details referred to by the subscription key.
UpdateSubscription for comments
(Since version ) see corresponding Javadoc for more information.
Adds a special type for local exchanges. also exposing a means to observe jobs.
This way the 'MatchObserver' provided to the Exchange is accessible. Also, as convenient as it is to provide multiple implementations of a generic Exchange (i.e. local and remote), It's useful to know the intent when wiring together components (e.g. so we don't have a REST service configured which just sends exchange requests to itself)