Package io.camunda.zeebe.client.impl
Class ZeebeClientCloudBuilderImpl
- java.lang.Object
-
- io.camunda.zeebe.client.impl.ZeebeClientCloudBuilderImpl
-
- All Implemented Interfaces:
ZeebeClientBuilder
,ZeebeClientCloudBuilderStep1
,ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2
,ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3
,ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4
public class ZeebeClientCloudBuilderImpl extends Object implements ZeebeClientCloudBuilderStep1, ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2, ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3, ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.camunda.zeebe.client.ZeebeClientCloudBuilderStep1
ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2
-
Nested classes/interfaces inherited from interface io.camunda.zeebe.client.ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2
ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3
-
Nested classes/interfaces inherited from interface io.camunda.zeebe.client.ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3
ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4
-
-
Constructor Summary
Constructors Constructor Description ZeebeClientCloudBuilderImpl()
-
Method Summary
-
-
-
Method Detail
-
withClusterId
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2 withClusterId(String clusterId)
Description copied from interface:ZeebeClientCloudBuilderStep1
Sets the cluster id of the Camunda Cloud cluster. This parameter is mandatory.- Specified by:
withClusterId
in interfaceZeebeClientCloudBuilderStep1
- Parameters:
clusterId
- cluster id of the Camunda Cloud cluster.
-
withClientId
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3 withClientId(String clientId)
Description copied from interface:ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2
Sets the client id that will be used to authenticate against the Camunda Cloud cluster. This parameter is mandatory.- Specified by:
withClientId
in interfaceZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2
- Parameters:
clientId
- client id that will be used in the authentication.
-
withClientSecret
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 withClientSecret(String clientSecret)
Description copied from interface:ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3
Sets the client secret that will be used to authenticate against the Camunda Cloud cluster. This parameter is mandatory.- Specified by:
withClientSecret
in interfaceZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3
- Parameters:
clientSecret
- client secret that will be used in the authentication.
-
withRegion
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 withRegion(String region)
Description copied from interface:ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4
Sets the region of the Camunda Cloud cluster. Default is 'bru-2'.- Specified by:
withRegion
in interfaceZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4
- Parameters:
region
- region of the Camunda Cloud cluster
-
gatewayAddress
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 gatewayAddress(String gatewayAddress)
- Specified by:
gatewayAddress
in interfaceZeebeClientBuilder
- Parameters:
gatewayAddress
- the IP socket address of a gateway that the client can initially connect to. Must be in formathost:port
. The default value is0.0.0.0:26500
.
-
usePlaintext
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 usePlaintext()
Description copied from interface:ZeebeClientBuilder
Use a plaintext connection between the client and the gateway.- Specified by:
usePlaintext
in interfaceZeebeClientBuilder
-
credentialsProvider
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 credentialsProvider(CredentialsProvider credentialsProvider)
Description copied from interface:ZeebeClientBuilder
A customCredentialsProvider
which will be used to apply authentication credentials to requests.- Specified by:
credentialsProvider
in interfaceZeebeClientBuilder
-
withProperties
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 withProperties(Properties properties)
Description copied from interface:ZeebeClientBuilder
Sets all the properties from aProperties
object. Can be used to configure the client from a properties file.See
ClientProperties
for valid property names.- Specified by:
withProperties
in interfaceZeebeClientBuilder
-
defaultJobWorkerMaxJobsActive
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 defaultJobWorkerMaxJobsActive(int maxJobsActive)
- Specified by:
defaultJobWorkerMaxJobsActive
in interfaceZeebeClientBuilder
- Parameters:
maxJobsActive
- Default value forJobWorkerBuilderStep1.JobWorkerBuilderStep3.maxJobsActive(int)
. Default value is 32.
-
numJobWorkerExecutionThreads
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 numJobWorkerExecutionThreads(int numThreads)
- Specified by:
numJobWorkerExecutionThreads
in interfaceZeebeClientBuilder
- Parameters:
numThreads
- The number of threads for invocation of job workers. Setting this value to 0 effectively disables subscriptions and workers. Default value is 1.
-
defaultJobWorkerName
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 defaultJobWorkerName(String workerName)
Description copied from interface:ZeebeClientBuilder
The name of the worker which is used when none is set for a job worker. Default is 'default'.- Specified by:
defaultJobWorkerName
in interfaceZeebeClientBuilder
-
defaultJobTimeout
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 defaultJobTimeout(Duration timeout)
Description copied from interface:ZeebeClientBuilder
The timeout which is used when none is provided for a job worker. Default is 5 minutes.- Specified by:
defaultJobTimeout
in interfaceZeebeClientBuilder
-
defaultJobPollInterval
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 defaultJobPollInterval(Duration pollInterval)
Description copied from interface:ZeebeClientBuilder
The interval which a job worker is periodically polling for new jobs. Default is 100 milliseconds.- Specified by:
defaultJobPollInterval
in interfaceZeebeClientBuilder
-
defaultMessageTimeToLive
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 defaultMessageTimeToLive(Duration timeToLive)
Description copied from interface:ZeebeClientBuilder
The time-to-live which is used when none is provided for a message. Default is 1 hour.- Specified by:
defaultMessageTimeToLive
in interfaceZeebeClientBuilder
-
defaultRequestTimeout
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 defaultRequestTimeout(Duration requestTimeout)
Description copied from interface:ZeebeClientBuilder
The request timeout used if not overridden by the command. Default is 20 seconds.- Specified by:
defaultRequestTimeout
in interfaceZeebeClientBuilder
-
caCertificatePath
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 caCertificatePath(String certificatePath)
Description copied from interface:ZeebeClientBuilder
Path to a root CA certificate to be used instead of the certificate in the default default store.- Specified by:
caCertificatePath
in interfaceZeebeClientBuilder
-
keepAlive
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 keepAlive(Duration keepAlive)
Description copied from interface:ZeebeClientBuilder
Time interval between keep alive messages sent to the gateway. The default is 45 seconds.- Specified by:
keepAlive
in interfaceZeebeClientBuilder
-
withInterceptors
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 withInterceptors(io.grpc.ClientInterceptor... interceptor)
- Specified by:
withInterceptors
in interfaceZeebeClientBuilder
-
withJsonMapper
public ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4 withJsonMapper(JsonMapper jsonMapper)
- Specified by:
withJsonMapper
in interfaceZeebeClientBuilder
-
build
public ZeebeClient build()
- Specified by:
build
in interfaceZeebeClientBuilder
- Returns:
- a new
ZeebeClient
with the provided configuration options.
-
-