public class ClientTransportBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected TransportChannelFactory |
channelFactory |
protected static long |
DEFAULT_CHANNEL_CONNECT_TIMEOUT |
protected static long |
DEFAULT_CHANNEL_KEEP_ALIVE_PERIOD
In the same order of magnitude of what apache and nginx use.
|
protected long |
defaultRequestRetryTimeout |
protected boolean |
enableManagedRequests |
protected long |
keepAlivePeriod |
protected List<ClientInputListener> |
listeners |
protected io.zeebe.dispatcher.Dispatcher |
receiveBuffer |
static String |
SEND_BUFFER_SUBSCRIPTION_NAME |
| Constructor and Description |
|---|
ClientTransportBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ClientTransport |
build() |
protected ClientTransport |
build(TransportContext context) |
protected TransportContext |
buildTransportContext(ClientOutput output,
ClientRequestPool clientRequestPool,
RequestManager requestManager,
RemoteAddressListImpl addressList,
io.zeebe.dispatcher.FragmentHandler receiveHandler,
io.zeebe.dispatcher.Dispatcher receiveBuffer) |
ClientTransportBuilder |
channelFactory(TransportChannelFactory channelFactory) |
ClientTransportBuilder |
defaultRequestRetryTimeout(java.time.Duration duration) |
ClientTransportBuilder |
enableManagedRequests()
|
ClientTransportBuilder |
inputListener(ClientInputListener listener) |
ClientTransportBuilder |
keepAlivePeriod(long keepAlivePeriod)
The period in which a dummy message is sent to keep the underlying TCP connection open.
|
ClientTransportBuilder |
messageMaxLength(int messageMaxLength) |
ClientTransportBuilder |
messageReceiveBuffer(io.zeebe.dispatcher.Dispatcher receiveBuffer)
Optional.
|
ClientTransportBuilder |
requestPoolSize(int requestPoolSize)
Maximum number of concurrent requests.
|
ClientTransportBuilder |
scheduler(io.zeebe.util.actor.ActorScheduler scheduler) |
ClientTransportBuilder |
sendBuffer(io.zeebe.dispatcher.Dispatcher sendBuffer)
Send buffer must have an open subscription named
SEND_BUFFER_SUBSCRIPTION_NAME. |
public static final String SEND_BUFFER_SUBSCRIPTION_NAME
protected static final long DEFAULT_CHANNEL_KEEP_ALIVE_PERIOD
protected static final long DEFAULT_CHANNEL_CONNECT_TIMEOUT
protected long keepAlivePeriod
protected io.zeebe.dispatcher.Dispatcher receiveBuffer
protected List<ClientInputListener> listeners
protected TransportChannelFactory channelFactory
protected boolean enableManagedRequests
protected long defaultRequestRetryTimeout
public ClientTransportBuilder scheduler(io.zeebe.util.actor.ActorScheduler scheduler)
public ClientTransportBuilder messageReceiveBuffer(io.zeebe.dispatcher.Dispatcher receiveBuffer)
ClientTransport.openSubscription(String, ClientMessageHandler) can be used to consume from this buffer.public ClientTransportBuilder inputListener(ClientInputListener listener)
public ClientTransportBuilder sendBuffer(io.zeebe.dispatcher.Dispatcher sendBuffer)
SEND_BUFFER_SUBSCRIPTION_NAME.public ClientTransportBuilder messageMaxLength(int messageMaxLength)
public ClientTransportBuilder requestPoolSize(int requestPoolSize)
public ClientTransportBuilder keepAlivePeriod(long keepAlivePeriod)
public ClientTransportBuilder channelFactory(TransportChannelFactory channelFactory)
public ClientTransportBuilder enableManagedRequests()
ClientOutput.sendRequestWithRetry(RemoteAddress, io.zeebe.util.buffer.BufferWriter).
Requires running another actor, so you can keep this disabled if you don't use the APIs.public ClientTransportBuilder defaultRequestRetryTimeout(java.time.Duration duration)
public ClientTransport build()
protected TransportContext buildTransportContext(ClientOutput output, ClientRequestPool clientRequestPool, RequestManager requestManager, RemoteAddressListImpl addressList, io.zeebe.dispatcher.FragmentHandler receiveHandler, io.zeebe.dispatcher.Dispatcher receiveBuffer)
protected ClientTransport build(TransportContext context)
Copyright © 2017–2018 camunda services GmbH. All rights reserved.