Package io.camunda.client.impl.command
Class CreateDocumentLinkCommandImpl
java.lang.Object
io.camunda.client.impl.command.CreateDocumentLinkCommandImpl
- All Implemented Interfaces:
CreateDocumentLinkCommandStep1,FinalCommandStep<DocumentLinkResponse>
-
Constructor Summary
ConstructorsConstructorDescriptionCreateDocumentLinkCommandImpl(String documentId, String storeId, String contentHash, JsonMapper jsonMapper, HttpClient httpClient, CamundaClientConfiguration 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 Camunda gateway.Sets the document store ID.timeToLive(Duration timeToLive) Sets the document link TTL.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.client.api.command.FinalCommandStep
execute
-
Constructor Details
-
CreateDocumentLinkCommandImpl
public CreateDocumentLinkCommandImpl(String documentId, String storeId, String contentHash, JsonMapper jsonMapper, HttpClient httpClient, CamundaClientConfiguration 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 usingCamundaClientBuilder.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 Camunda gateway. This operation is asynchronous. In case of success, the future returns the event that was generated by the Camunda gateway in response to the command.Call
CamundaFuture.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.
-