public class BatchRequest extends Object
Constructor and Description |
---|
BatchRequest(javax.ws.rs.core.MediaType mediaType,
String address,
List<?> providers,
String jwt,
org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters) |
Modifier and Type | Method and Description |
---|---|
BatchResponse |
commit()
Sends the current request, with items accumulated by invoking methods on proxies obtained via
getService(java.lang.Class) , to the Batch service, and awaits for synchronous response. |
BatchResponse |
commit(boolean async)
Sends the current request, with items accumulated by invoking methods on proxies obtained via
getService(java.lang.Class) , to the Batch service, and awaits for a synchronous or asynchronous
response, depending on the async parameter. |
List<BatchRequestItem> |
getItems() |
<T> T |
getService(Class<T> serviceClass) |
public <T> T getService(Class<T> serviceClass)
public List<BatchRequestItem> getItems()
public BatchResponse commit()
getService(java.lang.Class)
, to the Batch service, and awaits for synchronous response.
It also clears out the accumulated items, in case of reuse of this instance for subsequent requests.public BatchResponse commit(boolean async)
getService(java.lang.Class)
, to the Batch service, and awaits for a synchronous or asynchronous
response, depending on the async
parameter.
It also clears out the accumulated items, in case of reuse of this instance for subsequent requests.async
- whether asynchronous Batch process is requested, or notCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.