Package io.temporal.serviceclient
Class WorkflowServiceStubsOptions
- java.lang.Object
-
- io.temporal.serviceclient.ServiceStubsOptions
-
- io.temporal.serviceclient.WorkflowServiceStubsOptions
-
public final class WorkflowServiceStubsOptions extends ServiceStubsOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkflowServiceStubsOptions.Builder
Builder is the builder for ClientOptions.
-
Field Summary
Fields Modifier and Type Field Description static java.time.Duration
DEFAULT_POLL_RPC_TIMEOUT
Default RPC timeout used for all long poll calls.static java.time.Duration
DEFAULT_QUERY_RPC_TIMEOUT
Default RPC timeout for workflow queriesstatic java.time.Duration
DEFAULT_SERVER_LONG_POLL_RPC_TIMEOUT
RPC timeout used for all long poll calls on Temporal Server side.-
Fields inherited from class io.temporal.serviceclient.ServiceStubsOptions
channel, channelInitializer, connectionBackoffResetFrequency, DEFAULT_CONNECTION_BACKOFF_RESET_FREQUENCY, DEFAULT_GRPC_RECONNECT_FREQUENCY, DEFAULT_LOCAL_DOCKER_TARGET, DEFAULT_RPC_TIMEOUT, enableHttps, enableKeepAlive, grpcClientInterceptors, grpcMetadataProviders, grpcReconnectFrequency, headers, healthCheckAttemptTimeout, healthCheckTimeout, keepAlivePermitWithoutStream, keepAliveTime, keepAliveTimeout, metricsScope, rpcTimeout, sslContext, target
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static WorkflowServiceStubsOptions
getDefaultInstance()
boolean
getDisableHealthCheck()
Deprecated.ServiceStubs don't perform health check on start anymore to allow lazy connectivity.java.time.Duration
getRpcLongPollTimeout()
java.time.Duration
getRpcQueryTimeout()
RpcRetryOptions
getRpcRetryOptions()
static WorkflowServiceStubsOptions.Builder
newBuilder()
static WorkflowServiceStubsOptions.Builder
newBuilder(ServiceStubsOptions options)
-
Methods inherited from class io.temporal.serviceclient.ServiceStubsOptions
getChannel, getChannelInitializer, getConnectionBackoffResetFrequency, getEnableHttps, getEnableKeepAlive, getGrpcClientInterceptors, getGrpcMetadataProviders, getGrpcReconnectFrequency, getHeaders, getHealthCheckAttemptTimeout, getHealthCheckTimeout, getKeepAlivePermitWithoutStream, getKeepAliveTime, getKeepAliveTimeout, getMetricsScope, getRpcTimeout, getSslContext, getTarget
-
-
-
-
Field Detail
-
DEFAULT_SERVER_LONG_POLL_RPC_TIMEOUT
public static final java.time.Duration DEFAULT_SERVER_LONG_POLL_RPC_TIMEOUT
RPC timeout used for all long poll calls on Temporal Server side. Long poll returns with an empty result after this server timeout.
-
DEFAULT_POLL_RPC_TIMEOUT
public static final java.time.Duration DEFAULT_POLL_RPC_TIMEOUT
Default RPC timeout used for all long poll calls.
-
DEFAULT_QUERY_RPC_TIMEOUT
public static final java.time.Duration DEFAULT_QUERY_RPC_TIMEOUT
Default RPC timeout for workflow queries
-
-
Method Detail
-
newBuilder
public static WorkflowServiceStubsOptions.Builder newBuilder()
-
newBuilder
public static WorkflowServiceStubsOptions.Builder newBuilder(ServiceStubsOptions options)
-
getDefaultInstance
public static WorkflowServiceStubsOptions getDefaultInstance()
-
getDisableHealthCheck
@Deprecated public boolean getDisableHealthCheck()
Deprecated.ServiceStubs don't perform health check on start anymore to allow lazy connectivity. Users that prefer old behavior should explicitly callServiceStubs.healthCheck()
on client/stubs start and wait until it returnsHealthCheckResponse.ServingStatus.SERVING
- Returns:
- false when client checks endpoint to make sure that the server is accessible.
-
getRpcLongPollTimeout
public java.time.Duration getRpcLongPollTimeout()
- Returns:
- Returns the rpc timout for long poll requests.
-
getRpcQueryTimeout
public java.time.Duration getRpcQueryTimeout()
- Returns:
- Returns the rpc timout for query workflow requests.
-
getRpcRetryOptions
public RpcRetryOptions getRpcRetryOptions()
- Returns:
- Returns rpc retry options for outgoing requests to the temporal server that supposed to be processed and returned fast, like start workflow (not long polls or awaits for workflow finishing).
-
-