Class AsyncBatchRequestWrapperImpl
java.lang.Object
org.apache.olingo.client.core.communication.request.AbstractRequest
org.apache.olingo.client.core.communication.request.AsyncRequestWrapperImpl<ODataBatchResponse>
org.apache.olingo.client.core.communication.request.AsyncBatchRequestWrapperImpl
- All Implemented Interfaces:
AsyncBatchRequestWrapper,AsyncRequestWrapper<ODataBatchResponse>
public class AsyncBatchRequestWrapperImpl
extends AsyncRequestWrapperImpl<ODataBatchResponse>
implements AsyncBatchRequestWrapper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.olingo.client.core.communication.request.AsyncRequestWrapperImpl
httpClient, MAX_RETRY, odataClient, odataRequest, request, uriFields inherited from class org.apache.olingo.client.core.communication.request.AbstractRequest
LOG -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAsyncBatchRequestWrapperImpl(ODataClient odataClient, ODataBatchRequest odataRequest) -
Method Summary
Modifier and TypeMethodDescriptionGets a changeset batch item instance.voidaddOutsideUpdate(ODataBatchableRequest request) Adds an outside change batch item instance.voidaddRetrieve(ODataBatchableRequest request) Adds a retrieve batch item instance.execute()execute the request for the first time.Methods inherited from class org.apache.olingo.client.core.communication.request.AsyncRequestWrapperImpl
callback, checkMonitor, doExecute, executeHttpRequest, extendHeader, waitMethods inherited from class org.apache.olingo.client.core.communication.request.AbstractRequest
checkRequest, checkResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.olingo.client.api.communication.request.AsyncRequestWrapper
callback, wait
-
Constructor Details
-
AsyncBatchRequestWrapperImpl
-
-
Method Details
-
addChangeset
Gets a changeset batch item instance. A changeset can be submitted embedded into a batch request only.- Specified by:
addChangesetin interfaceAsyncBatchRequestWrapper- Returns:
- ODataChangeset instance.
-
addRetrieve
Adds a retrieve batch item instance. A retrieve item can be submitted embedded into a batch request only.- Specified by:
addRetrievein interfaceAsyncBatchRequestWrapper- Parameters:
request- retrieve request to batch.
-
addOutsideUpdate
Adds an outside change batch item instance. An outside item can be submitted embedded into a batch request only.- Specified by:
addOutsideUpdatein interfaceAsyncBatchRequestWrapper- Parameters:
request- update request to batch outside a changeset.
-
execute
Description copied from interface:AsyncRequestWrapperexecute the request for the first time.- Specified by:
executein interfaceAsyncRequestWrapper<ODataBatchResponse>- Overrides:
executein classAsyncRequestWrapperImpl<ODataBatchResponse>- Returns:
- the current AsyncRequestWrapper instance.
-