Class WorkflowServiceStubsOptions
java.lang.Object
io.temporal.serviceclient.ServiceStubsOptions
io.temporal.serviceclient.WorkflowServiceStubsOptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder is the builder for ClientOptions. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DurationDefault RPC timeout used for all long poll calls.static final DurationDefault RPC timeout for workflow queriesstatic final DurationRPC timeout used for all long poll calls on Temporal Server side.Fields inherited from class io.temporal.serviceclient.ServiceStubsOptions
apiKeyProvided, channel, channelInitializer, connectionBackoffResetFrequency, DEFAULT_CONNECTION_BACKOFF_RESET_FREQUENCY, DEFAULT_GRPC_RECONNECT_FREQUENCY, DEFAULT_LOCAL_DOCKER_TARGET, DEFAULT_RPC_TIMEOUT, enableHttps, enableKeepAlive, grpcClientInterceptors, grpcCompression, grpcMetadataProviders, grpcReconnectFrequency, headers, healthCheckAttemptTimeout, healthCheckTimeout, keepAlivePermitWithoutStream, keepAliveTime, keepAliveTimeout, metricsScope, rpcTimeout, sslContext, systemInfoTimeout, target -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic WorkflowServiceStubsOptionsbooleanDeprecated.ServiceStubs don't perform health check on start anymore to allow lazy connectivity.Returns the service stubs plugins configured for this options.inthashCode()newBuilder(ServiceStubsOptions options) toString()Methods inherited from class io.temporal.serviceclient.ServiceStubsOptions
getChannel, getChannelInitializer, getConnectionBackoffResetFrequency, getEnableHttps, getEnableKeepAlive, getGrpcClientInterceptors, getGrpcCompression, getGrpcMetadataProviders, getGrpcReconnectFrequency, getHeaders, getHealthCheckAttemptTimeout, getHealthCheckTimeout, getKeepAlivePermitWithoutStream, getKeepAliveTime, getKeepAliveTimeout, getMetricsScope, getRpcTimeout, getSslContext, getSystemInfoTimeout, getTarget
-
Field Details
-
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
Default RPC timeout used for all long poll calls. -
DEFAULT_QUERY_RPC_TIMEOUT
Default RPC timeout for workflow queries
-
-
Method Details
-
newBuilder
-
newBuilder
-
getDefaultInstance
-
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
- Returns:
- Returns the rpc timout for long poll requests.
-
getRpcQueryTimeout
- Returns:
- Returns the rpc timout for query workflow requests.
-
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).
-
getPlugins
Returns the service stubs plugins configured for this options.- Returns:
- the array of service stubs plugins, never null
-
equals
- Overrides:
equalsin classServiceStubsOptions
-
hashCode
public int hashCode()- Overrides:
hashCodein classServiceStubsOptions
-
toString
- Overrides:
toStringin classServiceStubsOptions
-