Class CreateDocumentBatchCommandImpl
java.lang.Object
io.camunda.zeebe.client.impl.command.CreateDocumentBatchCommandImpl
- All Implemented Interfaces:
CreateDocumentBatchCommandStep1,FinalCommandStep<DocumentReferenceBatchResponse>
public class CreateDocumentBatchCommandImpl
extends Object
implements CreateDocumentBatchCommandStep1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface io.camunda.zeebe.client.api.command.CreateDocumentBatchCommandStep1
CreateDocumentBatchCommandStep1.CreateDocumentBatchCommandStep2 -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreateDocumentBatchCommandImpl(JsonMapper jsonMapper, HttpClient httpClient, ZeebeClientConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionStarts the creation of a new document in a batch.processDefinitionId(String processDefinitionId) Sets the process definition that the document is associated with.processInstanceKey(long processInstanceKey) Sets the process instance key that the document is associated with.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Zeebe broker.Sets the store ID.
-
Field Details
-
METADATA_PART_HEADER
- See Also:
-
-
Constructor Details
-
CreateDocumentBatchCommandImpl
public CreateDocumentBatchCommandImpl(JsonMapper jsonMapper, HttpClient httpClient, ZeebeClientConfiguration configuration)
-
-
Method Details
-
requestTimeout
Description copied from interface:FinalCommandStepSets the request timeout for the command. The default request timeout can be configured usingZeebeClientBuilder.defaultRequestTimeout(Duration).- Specified by:
requestTimeoutin interfaceFinalCommandStep<DocumentReferenceBatchResponse>- Parameters:
requestTimeout- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStepSends the command to the Zeebe broker. This operation is asynchronous. In case of success, the future returns the event that was generated by the Zeebe broker in response to the command.Call
ZeebeFuture.join()to wait until the response is available.Future<JobEventinvalid input: '>' future = command.send(); JobEvent event = future.join();- Specified by:
sendin interfaceFinalCommandStep<DocumentReferenceBatchResponse>- Returns:
- a future tracking state of success/failure of the command.
-
storeId
Description copied from interface:CreateDocumentBatchCommandStep1Sets the store ID. If not set, the default store will be used.The store ID is the identifier of the document store where the document should be stored. Documents with the same ID can exist in different stores.
- Specified by:
storeIdin interfaceCreateDocumentBatchCommandStep1- Parameters:
storeId- the store ID
-
processDefinitionId
Description copied from interface:CreateDocumentBatchCommandStep1Sets the process definition that the document is associated with.- Specified by:
processDefinitionIdin interfaceCreateDocumentBatchCommandStep1- Parameters:
processDefinitionId- the process definition ID
-
processInstanceKey
Description copied from interface:CreateDocumentBatchCommandStep1Sets the process instance key that the document is associated with.- Specified by:
processInstanceKeyin interfaceCreateDocumentBatchCommandStep1- Parameters:
processInstanceKey- the process instance key
-
addDocument
Description copied from interface:CreateDocumentBatchCommandStep1Starts the creation of a new document in a batch.- Specified by:
addDocumentin interfaceCreateDocumentBatchCommandStep1
-