org.apache.olingo.client.api.communication.request

## Interface AsyncRequestWrapper<R extends ODataResponse>

- All Known Subinterfaces:
    AsyncBatchRequestWrapper

      public interface AsyncRequestWrapper<R extends ODataResponse>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.
    `AsyncResponseWrapper<R>` | `execute()` execute the request for the first time.
    `AsyncRequestWrapper<R>` | `wait(int waitInSeconds)` Add wait http header.

- - ### Method Detail

    - #### 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

          AsyncResponseWrapper<R> execute()

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

Copyright © 2013–2020 The Apache Software Foundation. All rights reserved.