public interface ZeebeClientBuilder
Modifier and Type | Method and Description |
---|---|
ZeebeClientBuilder |
brokerContactPoint(String contactPoint) |
ZeebeClient |
build() |
ZeebeClientBuilder |
defaultJobPollInterval(java.time.Duration pollInterval)
The interval which a job worker is periodically polling for new jobs.
|
ZeebeClientBuilder |
defaultJobTimeout(java.time.Duration timeout)
The timeout which is used when none is provided for a job worker.
|
ZeebeClientBuilder |
defaultJobWorkerBufferSize(int numberOfJobs) |
ZeebeClientBuilder |
defaultJobWorkerName(String workerName)
The name of the worker which is used when none is set for a job worker.
|
ZeebeClientBuilder |
defaultMessageTimeToLive(java.time.Duration timeToLive)
The time-to-live which is used when none is provided for a message.
|
ZeebeClientBuilder |
numJobWorkerExecutionThreads(int numThreads) |
ZeebeClientBuilder |
withProperties(Properties properties)
Sets all the properties from a
Properties object. |
ZeebeClientBuilder withProperties(Properties properties)
Properties
object. Can be used to configure the client
from a properties file.
See ClientProperties
for valid property names.
ZeebeClientBuilder brokerContactPoint(String contactPoint)
contactPoint
- the IP socket address of a broker that the client can initially connect to.
Must be in format host:port
. The default value is 127.0.0.1:51015
.ZeebeClientBuilder defaultJobWorkerBufferSize(int numberOfJobs)
numberOfJobs
- Default value for JobWorkerBuilderStep1.JobWorkerBuilderStep3.bufferSize(int)
. Default
value is 32.ZeebeClientBuilder numJobWorkerExecutionThreads(int numThreads)
numThreads
- The number of threads for invocation of job workers. Setting this value to 0
effectively disables subscriptions and workers. Default value is 1.ZeebeClientBuilder defaultJobWorkerName(String workerName)
ZeebeClientBuilder defaultJobTimeout(java.time.Duration timeout)
ZeebeClientBuilder defaultJobPollInterval(java.time.Duration pollInterval)
ZeebeClientBuilder defaultMessageTimeToLive(java.time.Duration timeToLive)
ZeebeClient build()
ZeebeClient
with the provided configuration options.Copyright © 2017–2019 camunda services GmbH. All rights reserved.