Package io.camunda.client.impl.command
Class AssignRoleToClientCommandImpl
java.lang.Object
io.camunda.client.impl.command.AssignRoleToClientCommandImpl
- All Implemented Interfaces:
AssignRoleToClientCommandStep1,AssignRoleToClientCommandStep1.AssignRoleToClientCommandStep2,FinalCommandStep<AssignRoleToClientResponse>
public class AssignRoleToClientCommandImpl
extends Object
implements AssignRoleToClientCommandStep1, AssignRoleToClientCommandStep1.AssignRoleToClientCommandStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.AssignRoleToClientCommandStep1
AssignRoleToClientCommandStep1.AssignRoleToClientCommandStep2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the client ID.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.Sets the role ID for the assignment to a client.send()Sends the command to the Camunda gateway.
-
Constructor Details
-
AssignRoleToClientCommandImpl
-
-
Method Details
-
roleId
Description copied from interface:AssignRoleToClientCommandStep1Sets the role ID for the assignment to a client.- Specified by:
roleIdin interfaceAssignRoleToClientCommandStep1- Parameters:
roleId- the roleId of the role- Returns:
- the builder for this command.
-
clientId
Description copied from interface:AssignRoleToClientCommandStep1.AssignRoleToClientCommandStep2Sets the client ID.- Specified by:
clientIdin interfaceAssignRoleToClientCommandStep1.AssignRoleToClientCommandStep2- Parameters:
clientId- the clientId of the client- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
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<AssignRoleToClientResponse>- 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<AssignRoleToClientResponse>- Returns:
- a future tracking state of success/failure of the command.
-