@FunctionalInterface public interface AsynchronousWorkflowsBuilder
Modifier and Type | Method and Description |
---|---|
AsynchronousWorkflows |
buildAsynchronousWorkflows(rx.Observable<PreResponse> preResponseEmitter,
rx.Observable<Either<PreResponse,JobRow>> payloadEmitter,
JobRow jobMetadata,
Function<JobRow,String> jobMetadataSerializer)
Builds the asynchronous workflows.
|
AsynchronousWorkflows buildAsynchronousWorkflows(rx.Observable<PreResponse> preResponseEmitter, rx.Observable<Either<PreResponse,JobRow>> payloadEmitter, JobRow jobMetadata, Function<JobRow,String> jobMetadataSerializer)
There are four workflows:
WARNING: Some implementations (i.e. DefaultAsynchronousWorkflowsBuilder
) may communicate with external
resources, or do other potentially expensive operations. If you wish to guarantee that the asynchronous
workflows are executed at most once (as opposed to once per subscription), then make sure to pass in instances of
ConnectableObservable
.
preResponseEmitter
- The Observable that will eventually emit the results of the backend querypayloadEmitter
- The Observable that will emit the results of the query if the query is
synchronous, and the job metadata if the query is asynchronousjobMetadata
- The query's metadatajobMetadataSerializer
- A function that serializes a given JobRow into the payload to return to the userCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.