Package io.camunda.client.impl.command
Class CreateTenantCommandImpl
java.lang.Object
io.camunda.client.impl.command.CreateTenantCommandImpl
- All Implemented Interfaces:
CreateTenantCommandStep1,FinalCommandStep<CreateTenantResponse>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Set the description for the tenant to be created.Set the name for the tenant to be created.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.Set the tenant ID for the tenant to be created.
-
Constructor Details
-
CreateTenantCommandImpl
-
-
Method Details
-
tenantId
Description copied from interface:CreateTenantCommandStep1Set the tenant ID for the tenant to be created.- Specified by:
tenantIdin interfaceCreateTenantCommandStep1- Parameters:
tenantId- the unique tenant ID- Returns:
- the builder for this command
-
name
Description copied from interface:CreateTenantCommandStep1Set the name for the tenant to be created.- Specified by:
namein interfaceCreateTenantCommandStep1- Parameters:
name- the tenant name- Returns:
- the builder for this command
-
description
Description copied from interface:CreateTenantCommandStep1Set the description for the tenant to be created.- Specified by:
descriptionin interfaceCreateTenantCommandStep1
-
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<CreateTenantResponse>- 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<CreateTenantResponse>- Returns:
- a future tracking state of success/failure of the command.
-