Package io.camunda.client.impl.command
Class UpdateTenantCommandImpl
java.lang.Object
io.camunda.client.impl.command.UpdateTenantCommandImpl
- All Implemented Interfaces:
FinalCommandStep<UpdateTenantResponse>,UpdateTenantCommandStep1
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateTenantCommandImpl(HttpClient httpClient, JsonMapper jsonMapper, String tenantId) -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Set the new description for the tenant.Set the new name for the tenant.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.
-
Constructor Details
-
UpdateTenantCommandImpl
-
-
Method Details
-
name
Description copied from interface:UpdateTenantCommandStep1Set the new name for the tenant.- Specified by:
namein interfaceUpdateTenantCommandStep1- Parameters:
name- the tenant name- Returns:
- the builder for this command
-
description
Description copied from interface:UpdateTenantCommandStep1Set the new description for the tenant.- Specified by:
descriptionin interfaceUpdateTenantCommandStep1
-
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<UpdateTenantResponse>- 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<UpdateTenantResponse>- Returns:
- a future tracking state of success/failure of the command.
-