public class ZeebeClientBuilderImpl extends Object implements ZeebeClientBuilder, ZeebeClientConfiguration
Constructor and Description |
---|
ZeebeClientBuilderImpl() |
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.
|
String |
getBrokerContactPoint() |
java.time.Duration |
getDefaultJobPollInterval() |
java.time.Duration |
getDefaultJobTimeout() |
int |
getDefaultJobWorkerBufferSize() |
String |
getDefaultJobWorkerName() |
java.time.Duration |
getDefaultMessageTimeToLive() |
int |
getNumJobWorkerExecutionThreads() |
ZeebeClientBuilder |
numJobWorkerExecutionThreads(int numSubscriptionThreads) |
String |
toString() |
ZeebeClientBuilder |
withProperties(Properties properties)
Sets all the properties from a
Properties object. |
public String getBrokerContactPoint()
getBrokerContactPoint
in interface ZeebeClientConfiguration
ZeebeClientBuilder.brokerContactPoint(String)
public ZeebeClientBuilder brokerContactPoint(String contactPoint)
brokerContactPoint
in interface ZeebeClientBuilder
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
.public int getDefaultJobWorkerBufferSize()
getDefaultJobWorkerBufferSize
in interface ZeebeClientConfiguration
ZeebeClientBuilder.defaultJobWorkerBufferSize(int)
public ZeebeClientBuilder defaultJobWorkerBufferSize(int numberOfJobs)
defaultJobWorkerBufferSize
in interface ZeebeClientBuilder
numberOfJobs
- Default value for JobWorkerBuilderStep1.JobWorkerBuilderStep3.bufferSize(int)
. Default
value is 32.public int getNumJobWorkerExecutionThreads()
getNumJobWorkerExecutionThreads
in interface ZeebeClientConfiguration
ZeebeClientBuilder.numJobWorkerExecutionThreads(int)
public ZeebeClientBuilder numJobWorkerExecutionThreads(int numSubscriptionThreads)
numJobWorkerExecutionThreads
in interface ZeebeClientBuilder
numSubscriptionThreads
- The number of threads for invocation of job workers. Setting this value to 0
effectively disables subscriptions and workers. Default value is 1.public String getDefaultJobWorkerName()
getDefaultJobWorkerName
in interface ZeebeClientConfiguration
ZeebeClientBuilder.defaultJobWorkerName(String)
public java.time.Duration getDefaultJobTimeout()
getDefaultJobTimeout
in interface ZeebeClientConfiguration
ZeebeClientBuilder.defaultJobTimeout(Duration)
public java.time.Duration getDefaultJobPollInterval()
getDefaultJobPollInterval
in interface ZeebeClientConfiguration
ZeebeClientBuilder.defaultJobPollInterval(Duration)
public ZeebeClientBuilder defaultJobWorkerName(String workerName)
ZeebeClientBuilder
defaultJobWorkerName
in interface ZeebeClientBuilder
public ZeebeClientBuilder defaultJobTimeout(java.time.Duration timeout)
ZeebeClientBuilder
defaultJobTimeout
in interface ZeebeClientBuilder
public ZeebeClientBuilder defaultJobPollInterval(java.time.Duration pollInterval)
ZeebeClientBuilder
defaultJobPollInterval
in interface ZeebeClientBuilder
public ZeebeClientBuilder defaultMessageTimeToLive(java.time.Duration timeToLive)
ZeebeClientBuilder
defaultMessageTimeToLive
in interface ZeebeClientBuilder
public java.time.Duration getDefaultMessageTimeToLive()
getDefaultMessageTimeToLive
in interface ZeebeClientConfiguration
ZeebeClientBuilder.defaultMessageTimeToLive(Duration)
public ZeebeClient build()
build
in interface ZeebeClientBuilder
ZeebeClient
with the provided configuration options.public ZeebeClientBuilder withProperties(Properties properties)
ZeebeClientBuilder
Properties
object. Can be used to configure the client
from a properties file.
See ClientProperties
for valid property names.
withProperties
in interface ZeebeClientBuilder
Copyright © 2017–2019 camunda services GmbH. All rights reserved.