Class BatchRequest
java.lang.Object
org.apache.syncope.client.lib.batch.BatchRequest
Encapsulates the Batch request management via CXF Proxy Client.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchRequest(MediaType mediaType, String address, List<?> providers, String jwt, TLSClientParameters tlsClientParameters) -
Method Summary
Modifier and TypeMethodDescriptioncommit()Sends the current request, with items accumulated by invoking methods on proxies obtained viagetService(java.lang.Class), to the Batch service, and awaits for synchronous response.commit(boolean async) Sends the current request, with items accumulated by invoking methods on proxies obtained viagetService(java.lang.Class), to the Batch service, and awaits for a synchronous or asynchronous response, depending on theasyncparameter.getItems()<T> TgetService(Class<T> serviceClass)
-
Constructor Details
-
BatchRequest
public BatchRequest(MediaType mediaType, String address, List<?> providers, String jwt, TLSClientParameters tlsClientParameters)
-
-
Method Details
-
getService
-
getItems
-
commit
Sends the current request, with items accumulated by invoking methods on proxies obtained viagetService(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.- Returns:
- batch response
-
commit
Sends the current request, with items accumulated by invoking methods on proxies obtained viagetService(java.lang.Class), to the Batch service, and awaits for a synchronous or asynchronous response, depending on theasyncparameter. It also clears out the accumulated items, in case of reuse of this instance for subsequent requests.- Parameters:
async- whether asynchronous Batch process is requested, or not- Returns:
- batch response
-