Class WorkflowServiceStubsOptions

java.lang.Object
io.temporal.serviceclient.ServiceStubsOptions
io.temporal.serviceclient.WorkflowServiceStubsOptions

public final class WorkflowServiceStubsOptions extends ServiceStubsOptions
  • Field Details

    • DEFAULT_SERVER_LONG_POLL_RPC_TIMEOUT

      public static final 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 Duration DEFAULT_POLL_RPC_TIMEOUT
      Default RPC timeout used for all long poll calls.
    • DEFAULT_QUERY_RPC_TIMEOUT

      public static final Duration DEFAULT_QUERY_RPC_TIMEOUT
      Default RPC timeout for workflow queries
  • Method Details

    • 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 call ServiceStubs.healthCheck() on client/stubs start and wait until it returns HealthCheckResponse.ServingStatus.SERVING
      Returns:
      false when client checks endpoint to make sure that the server is accessible.
    • getRpcLongPollTimeout

      public Duration getRpcLongPollTimeout()
      Returns:
      Returns the rpc timout for long poll requests.
    • getRpcQueryTimeout

      public 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).
    • getPlugins

      public WorkflowServiceStubsPlugin[] getPlugins()
      Returns the service stubs plugins configured for this options.
      Returns:
      the array of service stubs plugins, never null
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ServiceStubsOptions
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ServiceStubsOptions
    • toString

      public String toString()
      Overrides:
      toString in class ServiceStubsOptions