public abstract class AbstractBatchManager extends AbstractODataStreamManager<org.apache.olingo.client.api.communication.response.ODataBatchResponse>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
continueOnError |
protected org.apache.olingo.client.api.communication.request.batch.ODataBatchRequestItem |
currentItem
Batch request current item.
|
protected org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest |
req
batch request reference.
|
LOG| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBatchManager(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req,
Wrapper<Future<org.apache.http.HttpResponse>> futureWrap,
boolean continueOnError) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.olingo.client.api.communication.request.batch.ODataChangeset |
addChangeset()
Gets a changeset batch item instance.
|
void |
addRequest(org.apache.olingo.client.api.communication.request.ODataBatchableRequest request)
Adds a retrieve batch item instance.
|
protected void |
closeCurrentItem()
Close the current streamed item.
|
protected org.apache.olingo.client.api.communication.response.ODataBatchResponse |
getResponse(long timeout,
TimeUnit unit)
Gets OData response.
|
protected abstract org.apache.olingo.client.api.communication.response.ODataBatchResponse |
getResponseInstance(long timeout,
TimeUnit unit) |
protected void |
streamCloseDelimiter()
Streams close delimiter.
|
protected void |
streamDashBoundary()
Streams dash boundary.
|
protected abstract void |
validateSingleRequest(org.apache.olingo.client.api.communication.request.ODataBatchableRequest request) |
finalizeBody, getAsyncResponse, getBody, getHttpResponse, getResponsegetBodyStreamWriter, newLine, streamprotected final boolean continueOnError
protected org.apache.olingo.client.api.communication.request.batch.ODataBatchRequestItem currentItem
protected final org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req
public org.apache.olingo.client.api.communication.request.batch.ODataChangeset addChangeset()
public void addRequest(org.apache.olingo.client.api.communication.request.ODataBatchableRequest request)
request - retrieve request to batch.protected void closeCurrentItem()
protected org.apache.olingo.client.api.communication.response.ODataBatchResponse getResponse(long timeout,
TimeUnit unit)
AbstractODataStreamManagergetResponse in class AbstractODataStreamManager<org.apache.olingo.client.api.communication.response.ODataBatchResponse>timeout - maximum delay after which the request must be aborted.unit - time unit.protected abstract org.apache.olingo.client.api.communication.response.ODataBatchResponse getResponseInstance(long timeout,
TimeUnit unit)
protected void streamDashBoundary()
protected void streamCloseDelimiter()
protected abstract void validateSingleRequest(org.apache.olingo.client.api.communication.request.ODataBatchableRequest request)
Copyright © 2013–2017 The Apache Software Foundation. All rights reserved.