Class CreateDocumentLinkCommandImpl
java.lang.Object
io.camunda.zeebe.client.impl.command.CreateDocumentLinkCommandImpl
- All Implemented Interfaces:
CreateDocumentLinkCommandStep1,FinalCommandStep<DocumentLinkResponse>
-
Constructor Summary
ConstructorsConstructorDescriptionCreateDocumentLinkCommandImpl(String documentId, String storeId, String contentHash, JsonMapper jsonMapper, HttpClient httpClient, ZeebeClientConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptioncontentHash(String contentHash) Sets the documents content hash.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Zeebe broker.Sets the document store ID.timeToLive(Duration timeToLive) Sets the document link TTL.
-
Constructor Details
-
CreateDocumentLinkCommandImpl
public CreateDocumentLinkCommandImpl(String documentId, String storeId, String contentHash, JsonMapper jsonMapper, HttpClient httpClient, ZeebeClientConfiguration configuration)
-
-
Method Details
-
storeId
Description copied from interface:CreateDocumentLinkCommandStep1Sets the document store ID. If not set, the default document store for the cluster will be used.- Specified by:
storeIdin interfaceCreateDocumentLinkCommandStep1- Parameters:
storeId- the document store ID
-
timeToLive
Description copied from interface:CreateDocumentLinkCommandStep1Sets the document link TTL. If not set, the default TTL for the document store will be used. The TTL must be a positive duration.- Specified by:
timeToLivein interfaceCreateDocumentLinkCommandStep1- Parameters:
timeToLive- the time to live of the document link
-
contentHash
Description copied from interface:CreateDocumentLinkCommandStep1Sets the documents content hash.- Specified by:
contentHashin interfaceCreateDocumentLinkCommandStep1- Parameters:
contentHash- the documents content Hash
-
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<DocumentLinkResponse>- 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<DocumentLinkResponse>- Returns:
- a future tracking state of success/failure of the command.
-