public interface ZeebeClientBuilder
Modifier and Type | Method and Description |
---|---|
ZeebeClientBuilder |
brokerContactPoint(String contactPoint) |
ZeebeClient |
build() |
ZeebeClientBuilder |
defaultJobSubscriptionBufferSize(int numberOfJobs) |
ZeebeClientBuilder |
defaultJobTimeout(java.time.Duration timeout)
The timeout which is used when none is provided for a job worker.
|
ZeebeClientBuilder |
defaultJobWorkerName(String workerName)
The name of the worker which is used when none is set for a job worker.
|
ZeebeClientBuilder |
defaultTopic(String topic)
The name of the topic which is used for
ZeebeClient.topicClient() . |
ZeebeClientBuilder |
defaultTopicSubscriptionBufferSize(int numberOfRecords) |
ZeebeClientBuilder |
numManagementThreads(int numManagementThreads) |
ZeebeClientBuilder |
numSubscriptionExecutionThreads(int numSubscriptionThreads) |
ZeebeClientBuilder |
requestBlocktime(java.time.Duration requestBlockTime) |
ZeebeClientBuilder |
requestTimeout(java.time.Duration requestTimeout) |
ZeebeClientBuilder |
sendBufferSize(int sendBufferSize) |
ZeebeClientBuilder |
tcpChannelKeepAlivePeriod(java.time.Duration tcpChannelKeepAlivePeriod)
The period of time in milliseconds for sending keep alive messages on tcp channels.
|
ZeebeClientBuilder |
withProperties(Properties properties)
Sets all the properties from a
Properties object. |
ZeebeClientBuilder withProperties(Properties properties)
Sets all the properties from a 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 requestTimeout(java.time.Duration requestTimeout)
requestTimeout
- The request timeout in seconds. Default value is 15 seconds.ZeebeClientBuilder requestBlocktime(java.time.Duration requestBlockTime)
requestBlockTime
- The time to block when the user submits a request and the client
has no buffer (pooling) capacity to send the request. After this time, an exception is thrown.
Default value is 15 seconds.ZeebeClientBuilder sendBufferSize(int sendBufferSize)
sendBufferSize
- the size of the client's send buffer in MB. Default value is 16.ZeebeClientBuilder numManagementThreads(int numManagementThreads)
numManagementThreads
- The number of threads the client uses for the following tasks:
ZeebeClientBuilder numSubscriptionExecutionThreads(int numSubscriptionThreads)
numSubscriptionThreads
- The number of threads for invocation of job workers and
topic subscriptions. Setting this value to 0 effectively disables subscriptions and workers.
Default value is 1.ZeebeClientBuilder defaultTopicSubscriptionBufferSize(int numberOfRecords)
numberOfRecords
- Default value for
TopicSubscriptionBuilderStep1.TopicSubscriptionBuilderStep3.bufferSize(int)
.
Default value is 1024.ZeebeClientBuilder defaultJobSubscriptionBufferSize(int numberOfJobs)
numberOfJobs
- Default value for
JobWorkerBuilderStep1.JobWorkerBuilderStep3.bufferSize(int)
.
Default value is 32.ZeebeClientBuilder tcpChannelKeepAlivePeriod(java.time.Duration tcpChannelKeepAlivePeriod)
ZeebeClientBuilder defaultJobWorkerName(String workerName)
ZeebeClientBuilder defaultJobTimeout(java.time.Duration timeout)
ZeebeClientBuilder defaultTopic(String topic)
ZeebeClient.topicClient()
. Default is "default-topic".ZeebeClient build()
ZeebeClient
with the provided configuration options.Copyright © 2017–2018 camunda services GmbH. All rights reserved.