Completes the request (flow) with the provided Response.
Completes the request (flow) with the provided Response.
either a successful response or a failure.
RequestAlreadyCompletedException
if the request has already been completed
A request can only be completed once!
Returns a future that will be completed when this request (flow) is completed.
Returns a future that will be completed when this request (flow) is completed.
The request message.
Returns true iff the request has been completed
Returns true iff the request has been completed
Returns a new request with the same completion target as the current request,
but the original input is transformed by
, and the response is transformed by fInput
.fOutput
Returns a new request with the same completion target as the current request,
but the original input is transformed by
, and the response is transformed by fInput
.
fOutput
Maps the request input, if f
is defined for this input.
Maps the request input, if f
is defined for this input. Otherwise the
the current request is completed with completeWith
.
partial function that maps the request input, if it is defined for this input value
The specified function is called when the request fails.
The specified function is called when the request fails.
function to be called on failure.
The specified function is called when the request is completed successfully
The specified function is called when the request is completed successfully
function to be called on successful completion
Completes the request (flow) with a failure
Completes the request (flow) with a failure
Exception indicating the failure
RequestAlreadyCompletedException
if the request has already been completed
Completes the request (flow) successfully with the provided response result.
Completes the request (flow) successfully with the provided response result.
The result data object
RequestAlreadyCompletedException
if the request has already been completed
A completable request that provides access to the corresponding response in a future.