public class AsynchronousWorkflows extends Object
Users may access the results of each workflow by extracting the appropriate Observables from the bean, and subscribing to them.
Constructor and Description |
---|
AsynchronousWorkflows(rx.Observable<PreResponse> queryResultsPayload,
rx.Observable<String> jobMetadataPayload,
rx.Observable<String> preResponseReadyNotifications,
rx.Observable<JobRow> jobMarkedCompleteNotifications)
Builds a bean containing all the message flows that support asynchronous processing.
|
Modifier and Type | Method and Description |
---|---|
rx.Observable<String> |
getAsynchronousPayload()
Returns an Observable that emits the job metadata to send to the user.
|
rx.Observable<JobRow> |
getJobMarkedCompleteNotifications()
Returns an Observable that emits notifications that the JobRow has been updated.
|
rx.Observable<String> |
getPreResponseReadyNotifications()
Returns an Observable that emits notifications that the query results have been stored in the
PreResponseStore . |
rx.Observable<PreResponse> |
getSynchronousPayload()
Returns an Observable that emits the query results to send to the user.
|
public AsynchronousWorkflows(rx.Observable<PreResponse> queryResultsPayload, rx.Observable<String> jobMetadataPayload, rx.Observable<String> preResponseReadyNotifications, rx.Observable<JobRow> jobMarkedCompleteNotifications)
queryResultsPayload
- Emits query results to send to the userjobMetadataPayload
- Emits job metadata to send to the userpreResponseReadyNotifications
- Emits notifications that the query results have been stored in the
PreResponseStore
jobMarkedCompleteNotifications
- Emits notifications that the JobRow has been updated with success or error
upon completion of the querypublic rx.Observable<PreResponse> getSynchronousPayload()
public rx.Observable<String> getAsynchronousPayload()
public rx.Observable<String> getPreResponseReadyNotifications()
PreResponseStore
.PreResponseStore
public rx.Observable<JobRow> getJobMarkedCompleteNotifications()
Typically, a JobRow will be updated with some sort of notification (i.e. a Status value) indicating that the query has completed, either successfully or with an error.
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.