public static class WorkflowServiceTChannel.ClientOptions.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
long |
rpcQueryTimeoutMillis |
java.lang.String |
serviceName |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WorkflowServiceTChannel.ClientOptions |
build()
Builds and returns a ClientOptions object.
|
WorkflowServiceTChannel.ClientOptions.Builder |
setClientAppName(java.lang.String clientAppName)
Sets the client application name.
|
WorkflowServiceTChannel.ClientOptions.Builder |
setMetricsScope(com.uber.m3.tally.Scope metricsScope)
Sets the metrics scope to be used for metrics reporting.
|
WorkflowServiceTChannel.ClientOptions.Builder |
setQueryRpcTimeout(long timeoutMillis)
Sets the rpc timeout value for query calls.
|
WorkflowServiceTChannel.ClientOptions.Builder |
setRpcLongPollTimeout(long timeoutMillis)
Sets the rpc timeout value for the following long poll based operations:
PollForDecisionTask, PollForActivityTask, GetWorkflowExecutionHistory.
|
WorkflowServiceTChannel.ClientOptions.Builder |
setRpcTimeout(long timeoutMillis)
Sets the rpc timeout value for non query and non long poll calls.
|
WorkflowServiceTChannel.ClientOptions.Builder |
setServiceName(java.lang.String serviceName)
Sets the service name that Cadence service was started with.
|
public long rpcQueryTimeoutMillis
public java.lang.String serviceName
public WorkflowServiceTChannel.ClientOptions.Builder setRpcTimeout(long timeoutMillis)
timeoutMillis
- timeout, in millis.public WorkflowServiceTChannel.ClientOptions.Builder setRpcLongPollTimeout(long timeoutMillis)
timeoutMillis
- timeout, in millis.public WorkflowServiceTChannel.ClientOptions.Builder setQueryRpcTimeout(long timeoutMillis)
timeoutMillis
- timeout, in millis.public WorkflowServiceTChannel.ClientOptions.Builder setClientAppName(java.lang.String clientAppName)
This name will be used as the tchannel client service name. It will also be reported as a tag along with metrics emitted to m3.
clientAppName
- String representing the client application name.public WorkflowServiceTChannel.ClientOptions.Builder setServiceName(java.lang.String serviceName)
serviceName
- String representing the service namepublic WorkflowServiceTChannel.ClientOptions.Builder setMetricsScope(com.uber.m3.tally.Scope metricsScope)
metricsScope
- public WorkflowServiceTChannel.ClientOptions build()