Package io.camunda.zeebe.client
Interface ZeebeClientBuilder
- All Known Subinterfaces:
ZeebeClientCloudBuilderStep1.ZeebeClientCloudBuilderStep2.ZeebeClientCloudBuilderStep3.ZeebeClientCloudBuilderStep4
- All Known Implementing Classes:
ZeebeClientBuilderImpl,ZeebeClientCloudBuilderImpl
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionapplyEnvironmentVariableOverrides(boolean applyEnvironmentVariableOverrides) Deprecated.Allows to disable the mechanism to override some properties by ENVIRONMENT VARIABLES.build()Deprecated.caCertificatePath(String certificatePath) Deprecated.Path to a root CA certificate to be used instead of the certificate in the default default store.credentialsProvider(CredentialsProvider credentialsProvider) Deprecated.A customCredentialsProviderwhich will be used to apply authentication credentials to requests.defaultJobPollInterval(Duration pollInterval) Deprecated.The interval which a job worker is periodically polling for new jobs.defaultJobTimeout(Duration timeout) Deprecated.The timeout which is used when none is provided for a job worker.defaultJobWorkerMaxJobsActive(int maxJobsActive) Deprecated.defaultJobWorkerName(String workerName) Deprecated.The name of the worker which is used when none is set for a job worker.defaultJobWorkerStreamEnabled(boolean streamEnabled) Deprecated.A custom streamEnabled allows the client to use job stream instead of job poll.defaultJobWorkerTenantIds(List<String> tenantIds) Deprecated.defaultMessageTimeToLive(Duration timeToLive) Deprecated.The time-to-live which is used when none is provided for a message.defaultRequestTimeout(Duration requestTimeout) Deprecated.The request timeout used if not overridden by the command.defaultTenantId(String tenantId) Deprecated.gatewayAddress(String gatewayAddress) Deprecated.since 8.5 for removal with 8.8, replaced bygrpcAddress(URI)grpcAddress(URI grpcAddress) Deprecated.default ZeebeClientBuilderjobWorkerExecutor(ScheduledExecutorService executor) Deprecated.Identical behavior asjobWorkerExecutor(ScheduledExecutorService,boolean), but taking ownership of the executor by default.jobWorkerExecutor(ScheduledExecutorService executor, boolean takeOwnership) Deprecated.Allows passing a custom executor service that will be shared by all job workers created via this client.Deprecated.Time interval between keep alive messages sent to the gateway.maxMessageSize(int maxSize) Deprecated.A custom maxMessageSize allows the client to receive larger or smaller responses from Zeebe.maxMetadataSize(int maxSize) Deprecated.A custom maxMetadataSize allows the client to receive larger or smaller response headers from Zeebe.numJobWorkerExecutionThreads(int numThreads) Deprecated.overrideAuthority(String authority) Deprecated.Overrides the authority used with TLS virtual hosting.preferRestOverGrpc(boolean preferRestOverGrpc) Deprecated.since 8.5, will be removed in 8.8restAddress(URI restAddress) Deprecated.useDefaultRetryPolicy(boolean useDefaultRetryPolicy) Deprecated.If enabled, the client will make use of the default retry policy defined.Deprecated.Use a plaintext connection between the client and the gateway.withChainHandlers(org.apache.hc.client5.http.async.AsyncExecChainHandler... chainHandler) Deprecated.Custom implementations of the Apache HttpClientAsyncExecChainHandlermiddleware API.withInterceptors(io.grpc.ClientInterceptor... interceptor) Deprecated.Custom implementations of the gRPCClientInterceptormiddleware API.withJsonMapper(JsonMapper jsonMapper) Deprecated.withProperties(Properties properties) Deprecated.Sets all the properties from aPropertiesobject.
-
Method Details
-
withProperties
Deprecated.Sets all the properties from aPropertiesobject. Can be used to configure the client from a properties file.See
ClientPropertiesfor valid property names. -
applyEnvironmentVariableOverrides
Deprecated.Allows to disable the mechanism to override some properties by ENVIRONMENT VARIABLES. This is useful if a client shall be constructed for test cases or in an environment that wants to fully control properties (like Spring Boot).The default value is
true. -
gatewayAddress
Deprecated.since 8.5 for removal with 8.8, replaced bygrpcAddress(URI)- 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.
-
restAddress
Deprecated.- Parameters:
restAddress- the REST API address of a gateway that the client can connect to. The address must be an absolute URL, including the scheme.The default value is
https://0.0.0.0:8080.
-
grpcAddress
Deprecated.- Parameters:
grpcAddress- the gRPC address of a gateway that the client can connect to. The address must be an absolute URL, including the scheme.The default value is
https://0.0.0.0:26500.
-
defaultTenantId
Deprecated.- Parameters:
tenantId- the tenant identifier which is used for tenant-aware commands when no tenant identifier is set. The default value isCommandWithTenantStep.DEFAULT_TENANT_IDENTIFIER.
-
defaultJobWorkerTenantIds
Deprecated.- Parameters:
tenantIds- the tenant identifiers which are used for job-activation commands when no tenant identifiers are set. The default value contains onlyCommandWithTenantStep.DEFAULT_TENANT_IDENTIFIER.
-
defaultJobWorkerMaxJobsActive
Deprecated.- Parameters:
maxJobsActive- Default value forJobWorkerBuilderStep1.JobWorkerBuilderStep3.maxJobsActive(int). Default value is 32.
-
numJobWorkerExecutionThreads
Deprecated.- 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.
-
jobWorkerExecutor
Deprecated.Identical behavior asjobWorkerExecutor(ScheduledExecutorService,boolean), but taking ownership of the executor by default. This means the given executor is closed when the client is closed.- Parameters:
executor- an executor service to use when invoking job workers- See Also:
-
jobWorkerExecutor
Deprecated.Allows passing a custom executor service that will be shared by all job workers created via this client.Polling and handling jobs (e.g. via
JobHandlerwill all be invoked on this executor.When non-null, this setting override
numJobWorkerExecutionThreads(int).- Parameters:
executor- an executor service to use when invoking job workerstakeOwnership- if true, the executor will be closed when the client is closed. otherwise, it's up to the caller to manage its lifecycle
-
defaultJobWorkerName
Deprecated.The name of the worker which is used when none is set for a job worker. Default is 'default'. -
defaultJobTimeout
Deprecated.The timeout which is used when none is provided for a job worker. Default is 5 minutes. -
defaultJobPollInterval
Deprecated.The interval which a job worker is periodically polling for new jobs. Default is 100 milliseconds. -
defaultMessageTimeToLive
Deprecated.The time-to-live which is used when none is provided for a message. Default is 1 hour. -
defaultRequestTimeout
Deprecated.The request timeout used if not overridden by the command. Default is 10 seconds. -
usePlaintext
ZeebeClientBuilder usePlaintext()Deprecated.Use a plaintext connection between the client and the gateway. -
caCertificatePath
Deprecated.Path to a root CA certificate to be used instead of the certificate in the default default store. -
credentialsProvider
Deprecated.A customCredentialsProviderwhich will be used to apply authentication credentials to requests. -
keepAlive
Deprecated.Time interval between keep alive messages sent to the gateway. The default is 45 seconds. -
withInterceptors
Deprecated.Custom implementations of the gRPCClientInterceptormiddleware API. The interceptors will be applied to every gRPC call that the client makes. More details can be found at invalid input: '{@link https://grpc.io/docs/guides/interceptors/'}. -
withChainHandlers
ZeebeClientBuilder withChainHandlers(org.apache.hc.client5.http.async.AsyncExecChainHandler... chainHandler) Deprecated.Custom implementations of the Apache HttpClientAsyncExecChainHandlermiddleware API. The middleware implementations will be called on every REST API call that the client makes. -
withJsonMapper
Deprecated. -
overrideAuthority
Deprecated.Overrides the authority used with TLS virtual hosting. Specifically, to override hostname verification in the TLS handshake. It does not change what host is actually connected to.This method is intended for testing, but may safely be used outside of tests as an alternative to DNS overrides.
This setting does nothing if a
plaintextconnection is used.- Parameters:
authority- The alternative authority to use, commonly in the formhostorhost:port
-
maxMessageSize
Deprecated.A custom maxMessageSize allows the client to receive larger or smaller responses from Zeebe. Technically, it specifies the maxInboundMessageSize of the gRPC channel. The default is 4194304 = 4MB. -
maxMetadataSize
Deprecated.A custom maxMetadataSize allows the client to receive larger or smaller response headers from Zeebe. Technically, it specifies the maxInboundMetadataSize of the gRPC channel. The default is 16384 = 16KB . -
defaultJobWorkerStreamEnabled
Deprecated.A custom streamEnabled allows the client to use job stream instead of job poll. The default value is set as enabled. -
useDefaultRetryPolicy
Deprecated.If enabled, the client will make use of the default retry policy defined. False by default.NOTE: the default retry policy is taken from the
gateway-service-config.jsonin theio.camunda:zeebe-gateway-protocol-implJAR. -
preferRestOverGrpc
@ExperimentalApi("https://github.com/camunda/camunda/issues/16166") @Deprecated ZeebeClientBuilder preferRestOverGrpc(boolean preferRestOverGrpc) Deprecated.since 8.5, will be removed in 8.8If true, will prefer to use REST over gRPC for calls which can be done over both REST and gRPC. This is an experimental API which is present while we migrate the bulk of the API from gRPC to REST. Once done, this will also be removed.NOTE: not all calls can be done over REST (or HTTP/1) yet, this is also subject to change.
- Parameters:
preferRestOverGrpc- if true, the client will use REST instead of gRPC whenever possible- Returns:
- this builder for chaining
-
build
ZeebeClient build()Deprecated.- Returns:
- a new
ZeebeClientwith the provided configuration options.
-
CamundaClientBuilder