Interface AsyncRequestWrapper<R extends ODataResponse>

All Known Subinterfaces:
AsyncBatchRequestWrapper

public interface AsyncRequestWrapper<R extends ODataResponse>
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    execute the request for the first time.
    wait(int waitInSeconds)
    Add wait http header.
  • Method Details

    • wait

      AsyncRequestWrapper<R> wait(int waitInSeconds)
      Add wait http header.
      Parameters:
      waitInSeconds - wait time in seconds.
      Returns:
      the current AsyncRequestWrapper instance.
    • callback

      AsyncRequestWrapper<R> callback(URI url)
      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

      execute the request for the first time.
      Returns:
      the current AsyncRequestWrapper instance.