Class DaprHttpBuilder

java.lang.Object
io.dapr.client.DaprHttpBuilder

public class DaprHttpBuilder
extends Object
A builder for the DaprHttp.
  • Constructor Details

  • Method Details

    • withReadTimeout

      @Deprecated public DaprHttpBuilder withReadTimeout​(Duration duration)
      Deprecated.
      Sets the read timeout duration for the instance to be built.

      Instead, set environment variable "DAPR_HTTP_CLIENT_READTIMEOUTSECONDS", or system property "dapr.http.client.readtimeoutseconds".

      Parameters:
      duration - Read timeout duration.
      Returns:
      Same builder instance.
    • build

      public DaprHttp build()
      Build an instance of the Http client based on the provided setup.
      Returns:
      an instance of DaprHttp
      Throws:
      IllegalStateException - if any required field is missing