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 classWorkflowServiceStubsOptions.BuilderBuilder is the builder for ClientOptions.
-
Field Summary
Fields Modifier and Type Field Description static java.time.DurationDEFAULT_POLL_RPC_TIMEOUTDefault RPC timeout used for all long poll calls.static java.time.DurationDEFAULT_QUERY_RPC_TIMEOUTDefault RPC timeout for workflow queriesstatic java.time.DurationDEFAULT_SERVER_LONG_POLL_RPC_TIMEOUTRPC 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, systemInfoTimeout, target
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static WorkflowServiceStubsOptionsgetDefaultInstance()booleangetDisableHealthCheck()Deprecated.ServiceStubs don't perform health check on start anymore to allow lazy connectivity.java.time.DurationgetRpcLongPollTimeout()java.time.DurationgetRpcQueryTimeout()RpcRetryOptionsgetRpcRetryOptions()inthashCode()static WorkflowServiceStubsOptions.BuildernewBuilder()static WorkflowServiceStubsOptions.BuildernewBuilder(ServiceStubsOptions options)java.lang.StringtoString()-
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, getSystemInfoTimeout, 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).
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classServiceStubsOptions
-
hashCode
public int hashCode()
- Overrides:
hashCodein classServiceStubsOptions
-
toString
public java.lang.String toString()
- Overrides:
toStringin classServiceStubsOptions
-
-