Interface AsyncRequestWrapper<R extends ODataResponse>
- All Known Subinterfaces:
AsyncBatchRequestWrapper
public interface AsyncRequestWrapper<R extends ODataResponse>
-
Method Summary
-
Method Details
-
wait
Add wait http header.- Parameters:
waitInSeconds
- wait time in seconds.- Returns:
- the current AsyncRequestWrapper instance.
-
callback
The odata.callback preference MUST include the parameter url whose value is the URL of a callback endpoint to be invoked by the OData service when data is available. The syntax of the odata.callback preference is specified in [OData-ABNF].
For HTTP based callbacks, the OData service executes an HTTP GET request against the specified URL.
Services that support odata.callback SHOULD support notifying the client through HTTP.- Parameters:
url
- callback URL- Returns:
- the current AsyncRequestWrapper instance.
-
execute
AsyncResponseWrapper<R> execute()execute the request for the first time.- Returns:
- the current AsyncRequestWrapper instance.
-